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
What exactly is polymorphism?
What is oops and why we use oops?
Can we create object of interface?
How Do you Code Composition and Aggregation in C++ ?
What do you mean by abstraction?
Are polymorphisms mutations?
What is oops and its features?
What are the 4 pillars of oop?
Why is oop useful?
What does and I oop mean in text?
How do you define social class?
What is destructor example?
What are two types of polymorphism?
What is encapsulation selenium?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)