explained the for loop in c programming
Answers
Answered by
2
Answer:
intilization, text expression , increment in one statement is for loop
Answered by
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
Physics,
4 months ago
Science,
4 months ago
Science,
4 months ago
Math,
9 months ago
CBSE BOARD X,
9 months ago
English,
11 months ago
Social Sciences,
11 months ago