C Programming Reference


C Programming Reference >> C Basic Tutorials >> C Keywords Home >>

doui

30/12/06 -  Views - Ratings :   3.48 of 5 / 155 Votes

This a keyword use to generate a loop in combination with while keywords. This loop always executes once. This is a exit control loop that is condition for exit is checked at the end of execution of loop.

Code -
void function (void)
{
int i = 0;

do 
{
 
  printf ("\n%d", i);
  i++;

} while (i>10) \\ Loop prints values 0 to 9.   


}

Back To Top


      

 

 

© 2006 cencyclopedia.com