[Main]
Title=Logical negation operator ('!')
Index=!

[Top]
In the expression
<PRE>! <I>expr</I>
</PRE>
the <I>expr</I> operand must be of scalar type (i.e. not an array, a structure or an union).
The result is of type <CODE>int</CODE> and is the logical negation of the operand:
<UL>
<LI>0 if the operand is nonzero;</LI>
<LI>1 if the operand is 0.</LI>
</UL>
The expression <CODE>'!<I>expr</I>'</CODE> is equivalent to <CODE>'(0&nbsp;==&nbsp;<I>expr</I>)'</CODE>.
