write infinite loop in C++ which does not use any variable
or constant?
Answers were Sorted based on User's Feedback
Answer / gyanendra verma
#include<iostream.h>
#include<conio.h>
void main()
{
while!kbhit())
{
gotoxy(10,20);
printf(" Infinite loop by gyanendra verma ";
}
getch();
}
kbhit() : - A function that wait untill key press
| Is This Answer Correct ? | 3 Yes | 14 No |
What are punctuators in c++?
What is the difference between cin.read() and cin.getline()?
Where Malloc(), Calloc(), and realloc() does get memory?
When should we use container classes instead of arrays?
How can you tell what shell you are running on unix system?
When should you use multiple inheritance?
Is it possible to provide default values while overloading a binary operator?
When there is a global variable and local variable with the same name, how will you access the global variable?
What is an incomplete type in c++?
What is struct c++?
When does the c++ compiler create temporary variables?
What is class and structure in c++?