The syntax of a while loop is the following:
while ( expression
while begins by evaluating expression. If it is false, then statement is skipped. If it is true, then statement is evaluated. Then the expression is evaluated again, and the same check is performed. The loop exits when expression becomes zero.
One can easily create an infinite loop in C using the while statement: