C FAQ's
C FAQ's
This difference is the place where the condition is tested. The for tests the condition before executing any of the statements within the body of the for loop. As against this, the do while tests the condition after having executed the statements within the loop.