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...

How long does this loop run:

for(int x=0; x=3; x++)
a) Never
b) Three times
c) Forever

Answer Posted / manju

The correct and verified answer is the loop runs forever

the answer is c. it is so becoz in condition part we are
giving i=3 and not i==3.


so it executes infinite times.

Is This Answer Correct ?    32 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the uses of static class data?

1164


Name the debugging methods that are used to solve problems?

1144


Why would you use pointers in c++?

1217


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1114


How will you call C functions from C ++ and vice-versa?

1192


What is the copy-and-swap idiom?

1171


How do you invoke a base member function from a derived class in which you have not overridden that function?

1186


What is the role of C++ shorthand's?

1322


What is diamond problem in c++?

1060


Explain how functions are classified in C++ ?

1301


Why do we need pointers?

1059


State two differences between C and C++.

1249


What is rvalue?

1196


what you know about c++?

1201


How can you link a c++ program to c functions?

1143