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