► スポイラーを表示
私の理解が間違っているのか書籍が間違っているのか不安なので意見くれたら嬉しいです。
質問というよりあくまで日記なのでこちらに書かせていただきました。
6.5.3.3 Unary arithmetic operators さんが書きました: 5 The result of the logical negation operator ! is 0 if the value of its operand compares
unequal to 0, 1 if the value of its operand compares equal to 0. The result has type int.
The expression !E is equivalent to (0==E).