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 / durga shankar mishra
write answer of the 0
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is a class in oop?
what type of questions
What are the 3 pillars of oop?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Is react oop?
What is object in oop with example?
What is meant by multiple inheritance?
Can abstract class have normal methods?
What is the example of polymorphism?
What is class encapsulation?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is encapsulation example?
What is a function in oop?
What are the three parts of a simple empty class?
What is polymorphism explain its types?