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

output is 0

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is html an oop?

1072


What is the point of oop?

1192


What is overriding vs overloading?

1061


What does <> mean pseudocode?

1193


• What are the desirable attributes for memory managment?

2233


What is polymorphism and its types?

1070


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

2243


What is oops in simple words?

1101


Why do we use polymorphism?

1084


What are the types of abstraction?

1077


Is data hiding and abstraction same?

1040


What is an advantage of polymorphism?

1097


What is constructor in oop?

1117


Why is object oriented programming so hard?

1085


when to use 'mutable' keyword and when to use 'const cast' in c++

2163