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 the difference between global variables and static varables?

1068


Differences between private, protected and public and give examples.

998


What sorting algorithm does c++ use?

1075


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1945


Is c# written in c++?

922


What is operator overloading in c++ example?

1047


Explain what is class definition in c++ ?

1046


What is the purpose of ios::basefield in the following statement?

1198


Is map sorted c++?

941


What is scope resolution operator in c++ with example?

977


What is pure virtual function?

1020


What is split a string in c++?

1127


What is data types c++?

955


What is c++ good for?

1001


Explain the advantages of using friend classes.

1089