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

What is byval and byref? What are differences between them?

2202


What do you mean by Encapsulation?

1076


What is encapsulation process?

1030


What is a null tree?

1122


What is a class in oop?

1104


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

2135


Can bst contain duplicates?

1177


What is new keyword in oops?

1024


what are the ways in which a constructors can be called?

2113


What are the three parts of a simple empty class?

2033


What is inheritance write a program to show use of inheritance?

1127


to find out the minimum of two integer number of two different classes using friend function

2112


What is oops with example?

1036


What is polymorphism give a real life example?

1020


What is inheritance in simple words?

1042