Hello friends!!!!!

for loop in C

C LANGUAGE

10/14/20241 min read

The for loop is used in the case where we need to execute some part of the code until the given condition is satisfied. The for loop is also called as the per-tested loop. It is better to use for loop if the number of iteration is known in advance.

The syntax of for loop in c language is given below:

for(initialization;condition;incr/decr) {

//code to be executed

}