New course! Every coder should learn Generative AI!
Try a free lesson0
How does if(x==x==x) condition is evaluated in c++
The answer is true if x=1, how?
1 Answer
+ 2
Precedence of == operator is from left to right. So first x == x from left is evaluated and then the result with the another x.