int main()
{
int i=-1,j=-1;k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d%d%d%d%d",i,j,k,l,m);
}

Answers were Sorted based on User's Feedback



int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%..

Answer / jane

00131

Is This Answer Correct ?    13 Yes 3 No

int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%..

Answer / nithya

undefined symbol 'k'
undefined symbol 'l'
undefined symbol 'm'

in the above program in the line will be change from ; to ,

int i=-1,j=-1,k=0,l=2,m;

the out put is
00131

Is This Answer Correct ?    4 Yes 1 No

int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%..

Answer / devika

2,2,1,3,1

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

Sir,please help me out with the output of this programme:- #include<stdio.h> #include<conio.h> void main() { int a=18,b=12,i; for(i=a<b?a:b;a%i||b%i;i--); printf("%d %d",i); }

4 Answers  


what is the use of bitfields & where do we use them?

2 Answers  


What does a pointer variable always consist of?

0 Answers  


int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) main() { if(-1<=SIZE) printf("1"); else printf("2"); }

2 Answers   Vector,


write a program to swap two numbers without using temporary variable?

3 Answers  






What is the concatenation operator?

0 Answers  


write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)

1 Answers   Bosch, College School Exams Tests,


Differentiate between the expression “++a” and “a++”?

0 Answers  


biggest of two no's with out using if condition statement

5 Answers  


What is the difference between constant pointer and pointer to a constant. Give examples.

4 Answers   TCS,


Study the Following Points: a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static 1. Which of the Following Statements are true w.r.t Bit- Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture,


what is array?

63 Answers   Amdocs, HCL,


Categories