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

Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

0 Answers  


What are the comments in c++?

0 Answers  


What is protected inheritance?

0 Answers  


What are the main features of c++?

0 Answers  


Which function should be used to free the memory allocated by calloc()?

0 Answers  






Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

1 Answers  


What is split a string in c++?

0 Answers  


Find the second maximum in an array?

12 Answers   HCL,


Can we inherit constructor in c++?

0 Answers  


what is data abstraction in C++?

0 Answers  


How can you force instantiation of a template?

1 Answers   ABC, Amazon,


What is type of 'this' pointer? Explain when it is get created?

0 Answers  


Categories