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 / d n gavade

The Answer is 3)The Output is undefined because x is not
initialised and its datatype is auto int so that its inital
value will be garbage.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is encapsulation used?

995


What is an advantage of polymorphism?

1097


How do you answer polymorphism?

1067


Can we define a class within the interface?

1045


What is difference between oop and pop?

1168


What is a superclass in oop?

1179


Templates mean

2088


What is the problem with multiple inheritance?

1170


What is oops in simple words?

1102


What is polymorphism programming?

1133


Is abstract thinking intelligence?

1054


What are the 3 pillars of oop?

1194


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4752


What is a class in oop?

1134


What is encapsulation selenium?

1015