Infinite While Loop
#include <stdafx.h>
#include <iostream>
using namespace std;
int main()
{
while(1)
{
cout << "Hello World..!!" << endl;
}
return 0;
}
Output:
Hello World..!!
Hello World..!!
Hello World..!!
Hello World..!!
Hello World..!!
Hello World..!!
Hello World..!!
Hello World..!!
.................
.................