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 #include iostream h in c++?

1163


Write about the various sections of the executable image?

976


What are the important differences between c++ and java?

1154


What is the difference between an enumeration and a set of pre-processor # defines?

1389


Can you use the function fprintf() to display the output on the screen?

1247


How can virtual functions in c++ be implemented?

1132


How do I run a program in notepad ++?

1108


Difference between a homogeneous and a heterogeneous container

1142


What is std namespace in c++?

1179


What are the differences between java and c++?

1082


How can you say that a template is better than a base class?

1073


When do we run a shell in the unix system?

1083


How do you flush a buffer in c++?

1099


What is the use of setfill in c++?

1074


Difference between strdup and strcpy?

1205