Old-fashioned assignment operators (was Re: braces

Andrew Koenig ark at alice.UUCP
Sun Dec 18 01:37:47 AEST 1988


In article <2155 at uokmax.UUCP>, rmtodd at uokmax.UUCP (Richard Michael Todd) writes:

>   The question I have is, what exactly *is* the correct interpretation of
> x=-y in modern C? As mentioned before, the Encore cc interprets it as

The correct modern interpretation is x=(-y).

See ``C Traps and Pitfalls,'' page 8.
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.unix.wizards mailing list