Hi al,
I am a newbie to this forum...i had a problem in understanding the output which i got it when i compiled in Turbo C..
i got the output as i=-2 j=3 k=0 m=1;Code:main() { int i=-3,j=2,k=0,m; m= ++i&&++j||++k; printf("\n i=%d j=%d k=%d m=%d",i,j,k,m); }
i thought the value of k would be 1..but it is printing as 0..when i changed the OR operator to some other operator i got the k value to be 1...why i am getting 0 in this case..Pls clarify my doubt