You are here


10 February, 2015 - 11:09

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

statement;     // This statement initializes the flag; while (expression)   {   statement;   statement;   statement;   statement;   // This statement updates the flag;   } 
Note: The test expression is within the parentheses, 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.