Boolean Not in C and C++

!identifier;
! returns the opposite truth value of the identifier. For instance, !0 is true.

Related

Learn more about if statements and boolean logic