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 is the difference between the parameter to a template and the parameter to a function?

0 Answers  


What are the types of pointer?

0 Answers  


What are the benefits of c++?

0 Answers  


What are structures and unions?

0 Answers  


What is the difference between static global and global ?

2 Answers   CA,






What is auto type c++?

0 Answers  


What is setf in c++?

0 Answers  


How to allocate memory dynamically for a reference?

0 Answers  


What is c++ flowchart?

0 Answers  


What are associate containers?

0 Answers  


Explain the auto storage classes in c++.

0 Answers  


What is a container class?

0 Answers  


Categories