C Programming Reference


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

whileui

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

This keyword is used to generate loops. This is an entry control loop that is value is checked starting of loop. Loop doesnot execute even once if conditons fails.

Code -
void function (void)
{
int i = 0;
while (i>10) 
 {
 
    printf ("\n%d", i); \\ Loop prints values 0 to 9.
    i++;
 }     

}

Back To Top


      

 

 

© 2006 cencyclopedia.com