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 / pracheer gupta

what r u saying guys..
the loop will run c) forever
this is bcoz in the termination part it is actually x=3 and
not x==3.
x=3 will always evaluate to true and hence the loop is
executed infinite times.

Is This Answer Correct ?    94 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define pure virtual function?

1001


Why ctype h is used in c++?

963


Explain how to initialize a const data member.

1143


What are associate containers?

1049


What are c++ variables?

1069


Tell me what are static member functions?

1086


Should the this pointer can be used in the constructor?

1032


How would you use the functions randomize() and random()?

1087


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

2078


Is c++ harder than java?

1078


State two differences between C and C++.

1180


How does work in c++?

1086


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

1098


what are the iterator and generic algorithms.

2176


How do I use turbo c++?

995