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

Why oops is important?

593


What are two types of polymorphism?

600


Is enum a class?

593


What polymorphism means?

608


explain sub-type and sub class? atleast u have differ it into 4 points?

1818






What is abstraction and encapsulation?

560


What is multilevel inheritance?

711


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1610


What are the data types in oop?

592


What is the point of polymorphism?

576


What are the 4 pillars of oop?

652


Do you know about multiple inheritance?

627


What are classes oop?

586


How do you answer polymorphism?

568


What is the highest level of cohesion?

560