C documentation bug?
teklabs!tekmdp!azure!andyc
teklabs!tekmdp!azure!andyc
Mon May 10 15:37:47 AEST 1982
In the C Reference Manual at the end of the Ritchie book in section 9.6
Ritchie describes the 'for' statement as being equivalent to the 'while'
statement as follows:
The 'for' statement has the form
for (expression-1 ; expression-2 ; expression-3) statement
This statement is equivalent to
expression-1;
while (expression-2) {
statement
expression-3;
}
This does not seem to hold when 'statement' is a continue. In the
while statement, expression-3 will not get executed. Am I misunderstanding
something?
Andy Crump
Tektronix, Inc
teklabs!tekmdp!azure!andyc
More information about the Comp.unix.wizards
mailing list