+ 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 Respostas
+ 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