To repeat a series of statements
ad infinitum, you can insert them into a
while
loop in which the Boolean expression consists of just the
number 1
. Because 1
is not 0
, the while
loop
will carry on until you type the control-c
keychordor the
appropriate alternative recognized by your operating system.
while (1) {...}