One's Complement Operator

Learn the functionality of one's complement operator.

What is one’s complement operator?


One’s complement operator converts 1’s in a binary to 0’s and vice versa.


One’s complement is a unary operator represented by tilde, ~, as shown below:

Get hands-on with 1400+ tech skills courses.