A curriosity in the C compiler...
    Andrew Koenig 
    ark at alice.UUCP
       
    Sat Oct 29 05:25:44 AEST 1988
    
    
  
In article <530 at uvicctr.UUCP>, sbanner1 at uvicctr.UUCP (S. John Banner) writes:
 
> /*
> 	This is a quick test of the C compiler, for implied bracketing...
> This will determine if the expression "a = b == c" is parsed
> as "(a = b) == c" (which is correct), or as "a = (b == c)" (which
> is not).
> */
The expression
	a = b == c
is correctly parsed as
	a = (b == c)
despite the comment above to the contrary.
-- 
				--Andrew Koenig
				  ark at europa.att.com
    
    
More information about the Comp.lang.c
mailing list