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
Is html an oop?
What is the point of oop?
What is overriding vs overloading?
What does <> mean pseudocode?
• What are the desirable attributes for memory managment?
What is polymorphism and its types?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is oops in simple words?
Why do we use polymorphism?
What are the types of abstraction?
Is data hiding and abstraction same?
What is an advantage of polymorphism?
What is constructor in oop?
Why is object oriented programming so hard?
when to use 'mutable' keyword and when to use 'const cast' in c++