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]

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Next Post

Previous Post

Leave a Reply

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

© 2024 Henry Poon's Blog

Theme by Anders Norén