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