c++ infinity loop code example Example: infinite loop c++ for (;;) {} while(true) {} while(1) {} do {} while(true) do {} while(1)