Multiple choice

Which one of the following is a bitwise operator?

  1. !

  2. ~

  3. ==

  4. !=

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The tilde (~) operator is the bitwise NOT operator in C++. The other options are logical operators (!) or comparison operators (==, !=).