for( ; ; ) ????
C / C++ / MFC
6
Posts
4
Posters
0
Views
1
Watching
-
the following expression: for( ; ; ) { doSmth(); } Can anyone explain what the for(; ; ) does! Thank you
It is an infinite loop, exactly the same as:
while(1) { }
:-D -Dominik
-
the following expression: for( ; ; ) { doSmth(); } Can anyone explain what the for(; ; ) does! Thank you
It loops forever. No setup, No exit condition, No incrementer
-
It loops forever. No setup, No exit condition, No incrementer
-
the following expression: for( ; ; ) { doSmth(); } Can anyone explain what the for(; ; ) does! Thank you
I use a where I #define EVER (;;), so writing this: for EVER {} will loop for ever neat!
-
I use a where I #define EVER (;;), so writing this: for EVER {} will loop for ever neat!