Infinite loops
You can intentionally create an infinite loop ( a loop that never terminates)
- if you leave all three parts of the for empty.
for( ; ;) {
cout << “blah blah blah” << endl;
}
- if you place a ; after the for as follows:
for ( x = 0; x < N; x++) ;