Comma and semicolon
KW Heuer
kwh at bentley.UUCP
Tue May 20 01:46:03 AEST 1986
In article <118 at danews.UUCP> danews!lvc writes:
> printf("usage: foo bar\n") , return 1 ;
>seems reasonably "within C's style". Comments ?
It would've been nice if the "," operator and the ";" separator had been
the same token, but they aren't. They happen to be interchangeable in one
instance (both sides statement-expressions, and not the body of an if/else/
while/do/switch without braces), that's all.
Karl W. Z. Heuer (ihnp4!bentley!kwh), The Walking Lint
More information about the Comp.lang.c
mailing list