sizeof (int) - 1

Andrew Koenig ark at alice.UucP
Sat Oct 4 22:14:18 AEST 1986


> The expression
>
>	sizeof (int) - 1
>
> is not ambiguous.  The operand of "sizeof" must either by a typecast or
> an lvalue.  "(int) -1" is neither.

Nope.  The operand of "sizeof" can be an rvalue.



More information about the Comp.lang.c mailing list