+ 3
why cout << i==‘1’ causes an error?
https://code.sololearn.com/c6wLOPzA10dY/?ref=app In this code: Int i=5; cout << i==‘1’ Causes an error However, cout << (i==‘1’) Prints 0?
3 Antworten
+ 9
The overloaded insertion << operator has higher precendence over == operator.
+ 5
i see, now it makes sense, it would be nice if << operator was explained in advanced c++ tutorial
0
yes