0
X=y=z=1. Z=++x || ++y && ++z; can someone pls explain .
C programming
2 Answers
0
As x=y=z=1.
++X,++y and ++z increament the value of variables before using them. Hence now x y and z become 2 each.
As and has higher precedence, ++y&&++z result in true since anything which is not zero is considered true. In the same way ++x||++y&&++z give the result true. As true can be written as 1, z=1
0
Tnx understood