Electronic Circuits - Electronic Tutorials - Electronic Hobby Projects - A Complete Electronic Resource Centre

C Language Programming Library Reference Guide

Products

Sitemap

Online
Calculators

Circuits (A-C)

Circuits (D-O)

Circuits (P-Z)

Tutorials


 
Google
 
Web Hobbyprojects.com

Statements - while

The while statement provides an iterative loop.
Syntax:
 
while( expression ) statement...
statement is executed repeatedly as long as expression is true. The test on expression takes place before each execution of statement.
Examples:
 
while(*pointer!='j') pointer++;

while(counter<5)
 {
  printf("counter=%i",counter);
  counter++;
 }
 
 

					
Search
Custom Search

<<<  Back to C Language Library Reference Guide

<<<  Back to Electronics Tutorials