write infinite loop in C++ which does not use any variable
or constant?

Answers were Sorted based on User's Feedback



write infinite loop in C++ which does not use any variable or constant?..

Answer / sxx

for(;;)

Is This Answer Correct ?    27 Yes 3 No

write infinite loop in C++ which does not use any variable or constant?..

Answer / chetan bhola

while(1)
{
;
}

Is This Answer Correct ?    1 Yes 4 No

write infinite loop in C++ which does not use any variable or constant?..

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

Post New Answer

More C++ General Interview Questions

What are the uses of typedef in a program?

0 Answers  


Evaulate: 22%5 a) 2 b) 4 c) 0

0 Answers  


What are virtual functions in c++?

0 Answers  


how many trys can we write in one class

3 Answers   Cap Gemini,


Explain register storage specifier.

0 Answers  






Can a constructor return a value?

0 Answers  


What is isdigit c++?

0 Answers  


What is protected inheritance?

0 Answers  


what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.

9 Answers  


When should overload new operator on a global basis or a class basis?

0 Answers  


Is it possible to have a recursive inline function in c++?

0 Answers  


How can you quickly find the number of elements stored in a dynamic array?

0 Answers  


Categories