Problem with ()?():() as ending test in for-loop

Karl Heuer karl at haddock.ima.isc.com
Sun May 28 15:55:28 AEST 1989


In article <4326 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
>	(()&&(char *))||(~()||(void *))	-- may be char *, will never be void *.

No, it will always be of type int (conceptually boolean, but in C that's int).

Note that the original statement of equivalence was explicitly restricted to
boolean expressions.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list