Ans. The for loop in C programming is commonly used for decision making based on a condition. It is written as follows:
for (initialization; condition; increment/decrement) {
// code to be executed repeatedly as long as the condition is true
}
The initialization part is executed only once before the loop starts. The condition is evaluated before each iteration, and if it is true, the code inside the loop is executed. After each iteration, the increment/decrement part is executed. If the condition becomes false, the loop is terminated, and the program continues executing the code after the loop.