write infinite loop in C++ which does not use any variable
or constant?
Answer Posted / 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 |
Post New Answer View All Answers
Is c++ used anymore?
Which is the best c++ compiler for beginners?
daily Routine of father
Do vectors start at 0?
What are the differences between java and c++?
Why should we use null or zero in a program?
How to declare a pointer to an array of integers?
What is the difference between containment and delegation?
What is the output of the following program? Why?
What is data abstraction? How is it different from data encapsulation?
Explain terminate() function?
Which c++ operator cannot overload?
When do we run a shell in the unix system?
What is a try block?
What is near, far and huge pointers? How many bytes are occupied by them?