Computer Science, asked by pd77308, 9 months ago

explained the for loop in c programming

Answers

Answered by aakash3637
2

Answer:

intilization, text expression , increment in one statement is for loop

Answered by VishalkSaini
3

Answer:The syntax of the for loop is:

for (initializationStatement; testExpression; updateStatement)

{

   // statements inside the body of loop

}

Explanation:

The initialization statement is executed only once.

Then, the test expression is evaluated. If the test expression is evaluated to false, the for loop is terminated.

However, if the test expression is evaluated to true, statements inside the body of for loop are executed, and the update expression is updated.

Again the test expression is evaluated.

Attachments:
Similar questions