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

What will happen when the following code is run:
int x;
while(x<100)
{
cout<<x;
x++;
}




1) The computer will output "0123...99"


2) The computer will output "0123...100"


3) The output is undefined

Answer Posted / deepanker aggarwal

the answer is 3 because x is not initialised and it may
contain any garbage value

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can static class have constructor?

1085


what type of questions

2177


What is the purpose of polymorphism?

1175


What is and I oop mean?

1279


Are polymorphisms mutations?

1213


Why is object oriented programming so hard?

1134


What do you mean by overloading?

1129


Advantage and disadvantage of routing in telecom sector

1352


Can enum be null?

1071


What are the 3 principles of oop?

1169


What is multilevel inheritance?

1257


what's the basic's in dot net

2234


What does sksksk mean in text slang?

2180


What is interface? When and where is it used?

2209


What is the difference between inheritance and polymorphism?

1166