meaning of this code [closed]
int main()
{
int x = 2, y = 6, z = 6;
x = y == z;
printf("%d", x);
}
==
has higher precedence than =
, and y==z
is 1
.
I will end the answer there, because this looks like homework.
http://codepad.org/fp4ZYJX5
The output is:
1
Have a look at this, which explains a similar, yet more complex question and will answer yours as well.
Output is 1
If you want more help we can give you
精彩评论