Strange for loop: for(;;){}


i ahve been studying some examples on web and i saw this function:

for(;;) {



I am familiar whit FOR loops but i never saw one whit only ;; in brackets. Can some1 explain to me how that loop would behave and when would it exit?

Thanks in advance :D

I think this applies for C++ as well.

#define EVER (;;)

for EVER;

i saw this function:

Presumably it didn't have a smiley in it when you first saw it.