0
Syntax for infinte loop!
6 Antworten
+ 5
for(x=1; x>0;x++){} for example
+ 4
Everything that is done infinite times is an infinite loop, you can make many of them
+ 1
more easy one
for(;1>0;)
0
while(1) {}
0
while (true) { }
is the standard for an infinite loop. Or replace "true" with a non-zero integer, as already mentioned, which is just another way of saying "true".
0
for (; ; ;)
while (1)
do . . . while(TRUE)