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 / ibrazileasum

The initial value of x is not defined to '0' hence the complier will not start from 0 as initial value. This is a garbage error to the compiler

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concepts involved in Object Oriented programming.

1227


Why do we use polymorphism in oops?

1041


What is difference between data abstraction and encapsulation?

1079


what is different between oops and c++

2540


What are two types of polymorphism?

1073


What is encapsulation in simple terms?

1038


What are the features of oop?

1175


Plese get me a perfect C++ program for railway/airway reservation with all details.

3899


What is object in oop with example?

1235


What is encapsulation with example?

1107


What is pointer in oop?

1052


What is a class in oop?

1128


What is oops?what is its use in software engineering?

1030


Can main method override?

1104


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

2212