parens on sizeof
Ron Natalie <ron>
ron at brl-tgr.ARPA
Thu Mar 21 03:49:27 AEST 1985
> > The empty string is an expression.
>
> I bet Ritchie would be surprised to learn that.
Yeah, then it's obviously a bug that my compiler won't let me
do
a = (int);
According to the K&R:
Statement = ;
expr ;
... list of things like while, if etc...
Expression = primary
unary expression
...list of things, non of which are null...
unary-expression:
... all the others...
(type-name) expression
sizeof expression
sizeof (type-name)
-Ron
More information about the Comp.lang.c
mailing list