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 / shailaja
the output of this code is
0
bcz here the return statement it will stops the execution
and returns to the calling function.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
write a C++ program for booking using constructor and destructor.
What is the advantage of oop over procedural language?
What are classes oop?
What is abstract class in oop?
What is multilevel inheritance in oop?
write a program to find 2^n+1 ?
What is the example of polymorphism?
Get me a number puzzle game-program
Why multiple inheritance is not possible?
to find out the minimum of two integer number of two different classes using friend function
What is coupling in oop?
How is polymorphism achieved?
What do you mean by Encapsulation?
What is polymorphism explain?
Why is oop useful?