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