Q) Find the output of:
OUTPUT IS:Code:void main() { int k=35; printf("%d %d %d",k==35,k=50,k>40); }
0 50 0
but why not the output is 1 50 0 (as 35==35)
second is:
OOUTPUT IS:Code:void main() { intx=15; printf("%d %d %d",x!=15,x=20,x<30); }
1 20 1
but according to me output should be 0 20 1 (asx!=15 i.e. 15!=15 is false i.e. 0) why is it not so.