Which of these expressions will display 1?

cout << !true;cout << 1;cout << false;cout << 1 && true;

Sweet! Remember that true is 1 and false is 0. The logical and returns true if both expressions are true and the ! operators makes true become false.

Yikes! Remember that true is 1 and false is 0. The logical and returns true if both expressions are true and the ! operators makes true become false.