0

How does if(x==x==x) condition is evaluated in c++

The answer is true if x=1, how?

21st Jul 2020, 4:44 PM
Chaitanya
3 RĂ©ponses
+ 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.
21st Jul 2020, 5:48 PM
$±𝐎â‚č𝔭!𝐹𝓝
$±𝐎â‚č𝔭!𝐹𝓝 - avatar