Tuesday, 15 June 2010

c - On do statement -



c - On do statement -

in c specification 6.8.5.2 iteration statement written alone, not do/while.

why, maybe because they, in context, 2 separate statements?

is explain ; character set @ end of while?

do { statement; // first statement } while(expr); // null statement???

in c specification iteration statement written alone, not do/while.

this not correct. c11 6.8.5 iteration statements:

iteration-statement: while ( look ) statement statement while ( look ) ; ...

why, maybe because they, in context, 2 separate statements?

no, do-while 1 statement specified syntax cited above. referred do statement (as in 6.8.5.2), while on end mandatory, part of same statement.

is explain ; character set @ end of while?

no, ; there because required syntax cited above.

c

No comments:

Post a Comment