Executes a loop.
Used as a shorter equivalent of while loop.
Syntax
for ( init_clause ; cond_expression ; iteration_expression ) loop_statement
Explanation
Behaves as follows:
init_clause may be an expression or a declaration If it is an expression, it is evaluated once, before the first evaluation of cond_expression and its result is discarded. (C99) If it is a declaration, it is in scope in the entire loop body, including the remainder of init_clause, the entire cond_express