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 is the output of the following code:
int v()
{
int m=0;
return m++;
}
int main()
{
cout<<v();
}




1) 1


2) 0


3) Code cannot compile

Answer Posted / shailaja

the output of this code is

0
bcz here the return statement it will stops the execution
and returns to the calling function.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a C++ program for booking using constructor and destructor.

2546


What is the advantage of oop over procedural language?

1090


What are classes oop?

1035


What is abstract class in oop?

1014


What is multilevel inheritance in oop?

1043


write a program to find 2^n+1 ?

2072


What is the example of polymorphism?

1132


Get me a number puzzle game-program

2253


Why multiple inheritance is not possible?

1074


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

2145


What is coupling in oop?

1035


How is polymorphism achieved?

1057


What do you mean by Encapsulation?

1094


What is polymorphism explain?

1265


Why is oop useful?

1110