Machine-translated by Google. Questions are authored in English.
Top

Discussion

The bitwise complement operator ~ is a unary operator.

  • A.True
  • B.False

Answer: B

Correct answer: True

The complement operator takes a single operand and inverts every one of its bits. The other bitwise operators - AND, OR, XOR and the two shifts - are all binary, taking an operand on each side.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.