You are here


10 February, 2015 - 12:12

The syntax of the for loop control structure within the C++ programming language is:

for (initializations; expression; updates)   {   statement;   statement;   statement;   } 
Note: The initializations, test expression and updates are within the parentheses (each separated by a semi-colon), but this is not a function call. The parentheses are part of the control structure. Additionally, there is not a semicolon after the parenthesis following the expression.