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

What is while loops?

1066


Difference between an inspector and a mutator

1350


Can you overload the operator+ for short integers?

1053


What does #define mean in c++?

1283


What are structs in c++?

1046


what is multi-threading in C++?

1064


What are c++ data types?

1178


How are virtual functions implemented in c++?

1079


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

1182


What is the difference between equal to (==) and assignment operator (=)?

1089


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

2398


Describe the advantages of operator overloading?

1055


What does new return if there is insufficient memory to make your new object?

1043


What is constant in c++ with example?

1165


What is the full form of stl in c++?

1201