Obscure C code (was Re: Excessive optimization)
kevenm at 3kranger.com
Sat Dec 4 08:17:33 CST 2010
I have a copy of
Draft Proposed American National Standard for Information Systems
-- Programming Language C
Jan 11, 1988 X3J11/88-001
In section 220.127.116.11 (page 45 line 27) it states
The result of the logical negation operator ! is 0 if the value of its
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).
----- 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
More information about the cctalk