Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How can you find the nodes with repetetive data in a linked list?

1 Answers   Lucent,


Write is a binary search tree? Write an algo and tell complexity?

0 Answers   Axtria,


What sorting algorithm does c++ use?

0 Answers  


Do we have private destructors?

12 Answers   Symphony, TCS,


Write about c++ storage classes?

0 Answers  


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

0 Answers  


What is difference between class and structure in c++?

0 Answers  


What is the meaning of string in c++?

0 Answers  


What is enum c++?

0 Answers  


Can you pass an array to a function in c++?

0 Answers  


write a programme to get a character and thier ASCII value

0 Answers  


How did c++ get its name?

0 Answers  


Categories