lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 13
How many times will the loop body execute?
int i = 0; do { i++; } while (i <= 0);
A. 0
B. 2
C. Infinite
D. 1
The do-while loop
A do-while loop is executed one time before the conditional expression is evaluated.
Postfix increment operation
The result of postfix increment operation is the value of the operand before it has been incremented. The value is modified only after the expression is evaluated.
Links:
The do Statement
The Increment Operator (++)