Asked in
Microsoft Windows
C Programming
C Sharp

What is a While Loop in C?

Answer

User Avatar
Wiki User
June 12, 2010 2:10PM

"while" is an entry controlled loop statement i.e the condition is evaluated first and if it is true the body of the loop is evaluated.This process is repeated until the test condition is false;then the control is transfered out of the loop.

The general form of while is as following

syntax:

while (<condition>)

{

<statements>;

}