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