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 static member functions?

0 Answers  


What is the best book for c++ beginners?

0 Answers  


let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.

1 Answers  


What do you mean by persistent and non persistent objects?

1 Answers  


What is the purpose of templates in c++?

0 Answers  


What is command line arguments in C++? What are its uses? Where we have to use this?

0 Answers   HCL,


What is else if syntax?

0 Answers  


const char * char * const What is the differnce between the above two?

11 Answers   TCS,


What is the best c++ compiler?

0 Answers  


By using c++ with an example describe linked list?

0 Answers  


Specify some guidelines that should be followed while overloading operators?

0 Answers  


Can c++ be faster than c?

0 Answers  


Categories