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 does and I oop mean?

614


Which language is not a true object oriented programming language?

640


What is overriding in oop?

550


Is enum a class?

604


Why is polymorphism used?

583






Can enum be null?

587


Write a program to reverse a string using recursive function?

1792


Why do we use polymorphism in oops?

579


Is abstract thinking intelligence?

592


write a program to find 2^n+1 ?

1549


What does I oop mean?

616


what are the ways in which a constructors can be called?

1581


What is the difference between encapsulation and polymorphism?

594


What is oops and why we use oops?

571


why reinterpret cast is considered dangerous?

1901