Very basic C question
Posted on 2004-08-04
i am a student and learnning C by myself, just started .
i wrote a small basic program using logical operators shown below,
printf ("\n w=%d x=%d y=%d z=%d ",w,x,y,z);
i got the output like this. w = 1 ,x= 0, y = 1, z = 1. Could anyone explain to me how the complier end up with this output. i think i know how the logical operators works. I will appreciate if you explain in a simple way since i am novice to C.