Thursday, 28 May 2015

C++ do...while Loop

The do...while Loop is similar to while loop with one very important difference. In while loop, check expression is checked at first before body of loop but in case of do...while loop, body of loop is executed first then only test expression is checked. That's why the body of do...while loop is executed at least once.

Syntax of do...while Loop

do {
   statement/s;
}
while (test expression);
 








0 comments:

Post a Comment