Execute a block of code a specific number of times using the compact `for` loop syntax.
The `for` loop is a powerful and commonly used iteration construct in C, ideal for situations where you need to repeat a block of code a known number of times. Its syntax is compact and brings together the three essential components of a loop into a single line. The `for` loop header consists of three parts, separated by semicolons, enclosed in parentheses: `for (initialization; condition; increment/decrement)`. The **initialization** part is executed only once at the beginning of the loop. It's typically used to declare and initialize a loop control variable (e.g., `int i = 0;`). The **condition** is evaluated before each iteration. If the condition is true, the loop body is executed. If it becomes false, the loop terminates, and the program continues with the statement following the loop. The **increment/decrement** part is executed at the end of each iteration, after the loop body has been executed. It's used to update the loop control variable (e.g., `i++`), bringing it closer to the termination condition. For example, `for (int i = 0; i < 10; i++)` will execute the loop body ten times, with `i` taking on values from 0 to 9. This structure makes it very clear how the loop starts, when it stops, and how it progresses with each step, which helps in preventing infinite loops and makes the code easier to read and debug. The `for` loop is the go-to choice for iterating over arrays or performing any task that requires a fixed number of repetitions.