Explanatory Question
Explain the syntax for for loop.
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.
for(expression-1; expression-2; expression-3) {
//set of statements
}
When control reaches for expression-1 is executed first. Then following expression-2, and if expression-2 evaluates to non-zero set of statements and expression-3 is executed, follows expression-2. First read the answer fully, then try to explain it in your own words. After that, open a few related questions and compare the concepts. This method helps you remember the topic for a longer time and improves exam preparation.