I have a copy of
Draft Proposed American National Standard for Information Systems
-- Programming Language C
Jan 11, 1988 X3J11/88-001
In section 3.3.3.3 (page 45 line 27) it states
The result of the logical negation operator ! is 0 if the value of its
operand compares
unequal to 0, 1 if the value of its operand compares equal to 0. The result
has type int.
The expression !E is equivalent to (0==E).
Keven Miller
----- Original Message -----
From: Eric Smith
To: Sridhar Ayengar
Cc: On-Topic and Off-Topic Posts
Sent: Saturday, December 04, 2010 01:07 AM
Subject: Re: Obscure C code (was Re: Excessive optimization)
Sridhar Ayengar wrote:
That's a pretty new standard. What did older
C standards say on the subject?
The same thing. I just don't have them handy to give specific section
references.