Henry Poon's Blog

Infinite Loop

Apparently this gives an infinite loop:

[code]#include <iostream>
using namespace std;

int main() {
int i = 0;
for ( ; ; ) {
cout << i++;
cout << "n";
}
return 0;
}[/code]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2022 Henry Poon's Blog

Theme by Anders Norén

%d bloggers like this: