Q. Which operator inverts all bits?

A
~
B
!
C
^
D
|
Solution:

The ~ operator inverts all bits, e.g., ~5 = -6 in two’s complement.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!