← Back to question

Answer explained

Which is the logical NOT operator?

Correct answer: (B) !

In C++, ! is logical negation while ~ is bitwise complement.