parens around sizeof arg
Guy Harris
guy at rlgvax.UUCP
Mon Feb 25 17:03:10 AEST 1985
> Style for you guys, necessity for others. The only time I use sizeof is
> in such expressions as, "sizeof(struct foo)"; and our compiler doesn't
> realize that "struct" gets a following name, so "sizeof struct foo" gets
> me a syntax error.
That's a "sizeof(type)", not a "sizeof thing", and the parentheses are
necessary in that case.
Guy Harris
{seismo,ihnp4,allegra}!rlgvax!guy
More information about the Comp.lang.c
mailing list