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 cout in c++?
What is a unnitialised pointer?
Can we use struct in c++?
What do you mean by volatile and mutable keywords used in c++?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
What is purpose of new operator?
What are compilers in c++?
How does c++ sort work?
Explain overriding.
What is a wchar_t in c++?
founder of c++
7 Answers Microtek, TCS, TeleCommand,
What is c++ and its features?