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
How do you use inheritance in unity?
What does no cap mean?
What is abstraction oop?
What is inheritance in oop?
Can we override main method?
When not to use object oriented programming?
What is object and example?
What is the purpose of polymorphism?
What is multilevel inheritance in oop?
How do you achieve polymorphism?
What is the main feature of oop?
#include
How to improve object oriented design skills?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Get me an image implementation program.