structured assembler (BASIC) [Really: C builtin functions?]

Doug Gwyn gwyn at brl-smoke.ARPA
Fri Apr 11 02:55:28 AEST 1986


In article <202 at chronon.UUCP> eric at chronon.UUCP (Eric Black) writes:
>Well, how about sizeof(foo)?
>
>It looks like a function invocation, and is known and understood
>by the compiler...

Rong.  "sizeof" comes in two flavors:
	sizeof <type-cast>
	sizeof <object>

In the first case, the parentheses belong to the <type-cast>,
not to the sizeof syntax; in the second case, surrounding the
<object> with parentheses is not usually necessary:

	int	array[20];

	... sizeof array ...



More information about the Comp.lang.c mailing list