Algol-style vs C-style semicolons - (nf)
ron at BRL-TGR.ARPA
ron at BRL-TGR.ARPA
Sun Jun 10 04:03:27 AEST 1984
From: Ron Natalie <ron at BRL-TGR.ARPA>
First of all. You are misleading people:
while(expr) statement ;
does have a null statement, nobody codes that way because
an example of that would be:
while(i=4) foo(i); ;
because expr = "i=4" and statement is "foo(i);". Note that for
the expression to be a statement it must contain it's own semicolon.
You don't do
while(i=4) {
foo(i);
goo(i);
};
either because blocks as statements don't need semicolon termination.
-Ron
More information about the Comp.lang.c
mailing list