incrementing after a cast

Chris Torek chris at mimsy.UUCP
Tue Dec 9 01:33:13 AEST 1986


In article <4674 at mimsy.UUCP>, in reference to `L = *((int *)cp)++', I wrote:
>casts and `++' have higher precedence than `*'.

`Wrongo, fishbreath.'  Sorry about that.  Casts, ++, and unary * all
have the same precedence; but they group right-to-left, not left-to-
right.

Thanks to Roger Hale for pointing this one out.  I wonder how I managed
that kind of slip?
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
UUCP:	seismo!mimsy!chris	ARPA/CSNet:	chris at mimsy.umd.edu



More information about the Comp.lang.c mailing list