How does infinite loop terminate?

Answer:
It comes from its name: it doesn't terminate, the user have to interrupt the program-run (in the worst case: power off the computer).

The infinite loop is also used to program loops with non-easily-deterministically end-of-loop conditions.

You write an infinite loop, such as for (;;) {statements}, and break out of the loop with the break statement when ready to terminate.

First answer by NevemTeve. Last edit by Alex146. Contributor trust: 419 [recommend contributor recommended]. Question popularity: 2 [recommend question].