×

Loading...

The structure of a for-loop

for(...; ...; ???) {
//code -------------
}

After the "code" is executed, ??? will be executed. So, if you like,
you can change the above code into the following form

for(...; ...; ) {
//code -------------
???
}

I hope I have examplified the execution sequence here.

I strongly suggest you grab a Java or C++ textbook and look into the
explanation of for-loop. You will be OK.
Report

Replies, comments and Discussions: