+ 17
Logical operators are operators used to perform operations on boolean variables. E.g. && (AND), || (OR), ! (NOT) bool x = true; bool y = false; cout << x || y; // outputs 1 cout << x && y; // outputs 0 cout << !x; // outputs 0
31st Mar 2017, 9:50 AM
Hatsy Rei
Hatsy Rei - avatar