Explain the syntax for for loop.

Long Answer
Views 1015

Answer:

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.

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of C Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.