Ace Your C++ Skills 2025 – Rock the ‘Thinking in C++’ Challenge!

Question: 1 / 565

What does the bitwise NOT operator (~) do to its operand?

Inverts each bit.

The bitwise NOT operator (~) inverts each bit of its operand, resulting in a value that is the opposite of the original value. Option B is incorrect because it would result in a different value than inverting each bit. Option C is also incorrect for the same reason. Option D is incorrect because a logical negation simply reverses the boolean value of an operand, not its individual bits.

Get further explanation with Examzify DeepDiveBeta

Sets all bits to 1.

Sets all bits to 0.

Performs a logical negation.

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy