Hex Editor - Binary File Editing Software for Windows
Download Hex Editor Neo Hide this button

! Logical NOT Operator

Logical NOT operator inverts (logically) an expression. Evaluates to 0 if the expression is non-zero or to non-zero if the expression is zero.

Syntax:

!exp

The following code fragment illustrates the use of the logical NOT operator:

!7       // evaluates to 0
!0       // evaluates to 1