A C code is written:
int i=-1 , j=-1 ,k=0 ,l=2 ,m;
m=i++ && j++ && k++ || l++; //Line 3
printf("%d%d%d%d%d",i,j,k,l,m);
O/p= 00131.
I figured out that the Last variable in Line 3 is incremented only if it is preceeded by || else if preceeded by && it is not incremented.
But if we take 3 variables the result is just reverse;
int i=-1 , j=-1 ,k=0 ,m;
m=i++ && j++ && k++; //Line 3
printf("%d%d%d%d",i,j,k,m);
O/p:0010. (and abt the value of m ,its totally unpredictable.
May be I'm wrong interpreting.PLz Some one tell me the exact functioning going on behind