Explain the syntax for for loop.

C Programming Language >   Loop control in C Language >   for Loop in C  

Short Question

1072


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.


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.