The tilde operator in C December 28, 2022 by Tarik The ~ operator is bitwise NOT, it inverts the bits in a binary number: NOT 011100 = 100011