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 class and object with example?

1141


What is the fundamental idea of oop?

1141


What is inheritance and how many types of inheritance?

1107


Can bst contain duplicates?

1203


Get me a number puzzle game-program

2253


Why do we use polymorphism in oops?

1059


What is the difference between procedural programming and oops?

1140


What is purpose of inheritance?

1113


Can main method override?

1117


What is oops in simple words?

1104


Give two or more real cenario of virtual function and vertual object

2329


Explain the concepts involved in Object Oriented programming.

1249


Why do while loop is used?

1042


Write a program to reverse a string using recursive function?

2352


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1641