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
Can a new be used in place of old mallocq? If yes, why?
Explain the purpose of the keyword volatile.
How are the features of c++ different from c?
Which one is a preferred language C or C++? Why?
What is the purpose of the "delete" operator?
How do I get good at c++ programming?
Mention the ways in which parameterized can be invoked.
What is the difference between cin.read() and cin.getline()?
What operators can you overload in c++?
Where can I run c++ program?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
When does a name clash occur in c++?
What are friend functions in C++?
How do you master coding?
What is c++ in english?