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
Answers were Sorted based on User's Feedback
Answer / 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 |
what is the difference between containership and inheritence?
what is the use of template classes in c++
Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345
can you explain how to use JavaBean in Project
what is use to destroy an object? illustrate.
What is the importance of oop?
Why u change company?
Why do we use polymorphism in oops?
i^=j; j^=i; i^=j; value of i,j
What do you mean by inline function?
What is the full form of oops?
what i oops concept, how many languages supports oops concept?