sizeof() confusion

Charles Bryant ch at dce.ie
Sat Nov 17 01:13:52 AEST 1990


In article <14462 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>...
> there are two distinct uses of sizeof:
>	sizeof unary_expression
>	sizeof ( type_name )

That must make parsing it more difficult than if the parentheses were always
required:
	sizeof (type_name) - 1
since in other contexts "(type_name) - 1" would be an expression containing
a cast.
-- 
Charles Bryant (ch at dce.ie)
--
/usr/ch/.signature: Block device required



More information about the Comp.lang.c mailing list