+ 2
Why this is happening?(see code)
C challenge question.i know that non zero value means true in c.but why the compiler here is assuming condition false .so i predict it would be like it reads from right to left.tell me exactly which things in c work like this and what we call this behaviour. I mean just detail this behaviour. https://code.sololearn.com/cnmC00SDEBxn/?ref=app
7 odpowiedzi
+ 4
I thought you had gotten it figured out
https://www.sololearn.com/Discuss/2939340/?ref=app
+ 3
"while" can have only one boolean argument.
In this case, the compiler sees the comma and ignores the first argument until it reaches the closing parenthesis.
Thus, only the last argument will be used.
+ 3
gaurav kumar the comma operator evaluates from left to right. The rightmost value is zero, therefore the final value of the expression is false.
+ 3
Gaurav,
Just go ahead and post a new question. TBH Idk how compiler works intermally, but I can say it's pretty complicated that only senior coders may be able to answer such question.
+ 2
Ipang i want more information.how compiler reads.
+ 2
Ipang ok
0
how compilor reads 📖the output.