6.5 for statement
A For statement should have the following format:
for (initialization; condition; update) {
statements;
}
An empty for statement (all work done in initialization, conditional judgment, and UPDATE clauses) should have the following format:
for (initialization; condition; update);
When using commas in the initialization or update clauses of a for statement, avoid using more than three variables, which results in a higher degree of complexity. If required, separate statements can be used before the For loop (for an initialization clause) or for the end of a for loop (for an update clause).
6.6 While statement
A while statement should have the following format
while (condition) {
statements;
}
An empty while statement should have the following format:
while (condition);
6.7 do...while Statements
A do-while statement should have the following format:
do {
statements;
} while (condition);
http://www.bkjia.com/PHPjc/532589.html www.bkjia.com true http://www.bkjia.com/PHPjc/532589.html techarticle 6.5 For statement A For statement should have the following format: for (initialization; condition; update) {statements;} an empty for statement (all work is initialized, condition judged, more ...)