#include<stdio.h>
int main()
{ int i=0,j=1,k=2,m,n=0;
m=i++&&j++&&k++||n++;
printf("%d,%d,%d,%d,%d",i,j,k,m,n);
}

Answers were Sorted based on User's Feedback



#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / boopathi

0,1,2,o,o

Is This Answer Correct ?    2 Yes 9 No

#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||..

Answer / a.sivasankar

i=0,j=1,k=3,m=0,n=0

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More C Interview Questions

How many levels of indirection in pointers can you have in a single declaration?

0 Answers   Agilent, ZS Associates,


void main() { static int i = 5; if(--i) { main(); printf("%d ",i); } } what would be output of the above program and justify your answer? }

5 Answers   C DAC, CDAC, Infosys, Wipro,


Rapunzel walks into the forest of forgetfullness. She meets a Lion who lies on Monday Tuesdays and Wednesdays and meets a rabbit who lies on Thurs fridays and saturdays . On that day both say that "I lied yesterday". What day is it .

3 Answers   TCS,


what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }

1 Answers   Google,


What does int main () mean?

0 Answers  






What is the function of multilevel pointer in c?

0 Answers  


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

0 Answers   Aspiring Minds,


Can we use any name in place of argv and argc as command line arguments?

0 Answers  


I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?

3 Answers  


What is meaning of tree

0 Answers  


Why is a semicolon (;) put at the end of every program statement?

0 Answers  


all c language question

0 Answers   Wipro,


Categories