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 is the use of static functions?
How is an Abstract Base Class(ABC) related to an "Abstract Data Type" (ADT)
What is the difference between cin.read() and cin.getline()?
What is oops in c++?
What is the difference between a baller and a reference in C++?
Explain the static member function.
What are the various storage classes in C++?
What does flush do c++?
How do you clear a map in c++?
What is singleton class in c++?
What does the linker do?
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast