| |
GeekInterview.com > Interview Questions > Programming > C
| Print | |
Question: do while() & while()
Answer: what is the minimum execution of do while() and while()? if there is a change why is it so? |
| June 06, 2008 07:10:54 |
#1 |
| sivarama vinaykumar |
CRM Expert Member Since: June 2008 Total Comments: 1 |
RE: do while() & while() |
while is entry control statement which checks the condition before the compiler executes the statements in the loop.so the minimum execution of while is '0'. do while is a exit control statement.it executes the statements once and at the end of the loop it verfies the condition in the while statement which is in the end of the loop hence the minimum execution of do while is '1'. |
| |
Back To Question | |