От: | Roman Odaisky | ||
Дата: | 11.09.06 08:07 | ||
Оценка: | 31 (2) |
The for statement
for ( for-init-statement conditionopt ; expressionopt ) statement
is equivalent to
{ for-init-statement while ( condition ) { statement expression ; } }
except that names declared in the for-init-statement are in the same declarative-region as those declared in
the condition, and except that a continue in statement (not enclosed in another iteration statement) will
execute expression before re-evaluating condition.
int main()
{
int const N = 5;
int x[N];
for(int n = N; n--; *p = n) int* p = x + n;
}
?