Infinite loops
Badri Lokanathan
badri at ur-helheim.UUCP
Wed Apr 16 03:49:53 AEST 1986
This is really a nitpicking question, but, anyway!
There are several ways of creating infinite loops:
while(1) {
.
.
.
}
Or
for(;;) {
.
.
.
}
And others too. My question is the following: is there any reason (other
than personal preferance) why one would prefer to use any particular form?
I personally prefer the while(1) form since it seems to make better reading.
Even better, I sometimes define TRUE to be 1 and then use while(TRUE).
More information about the Comp.lang.c
mailing list