What's wrong with printf( ) , return ?
KW Heuer
kwh at bentley.UUCP
Fri May 23 08:41:33 AEST 1986
In article <123 at danews.UUCP> danews!lvc writes:
>I knew that return wasn't an expression. The fact that you can
>do `control flow' with , seperating expressions makes me wonder
>why this wasn't extended to include 'some' statements such as return.
It makes about as much sense as "printf() + return". Comma in this context
is an *operator*. A more serious argument would be to allow the statement
"return ((void)printf())", which would make sense if "void" were a real
datatype.
Karl W. Z. Heuer (ihnp4!bentley!kwh), The Walking Lint
More information about the Comp.lang.c
mailing list