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

What do you mean by variable?

995


What is destructor oops?

1050


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1896


What is multilevel inheritance explain with example?

1116


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1831


What is advantage of inheritance?

1150


What is class and object in oops?

1091


Is oop better than procedural?

1007


Is this job good for future? can do this job post grduate student?

2120


What is property in oops?

1017


How do you achieve polymorphism?

1056


What are functions in oop?

1019


Can enum be null?

977


What is the difference between static polymorphism and dynamic polymorphism?

1049


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

2104