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 is an advantage of polymorphism?
Why do we use inheritance?
what are the different types of qualifier in java?
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 the difference between inheritance and polymorphism?
What is overriding in oops?
Can we override main method?
What is cohesion in oop?
what type of question are asked in thoughtworks pair programming round ?
What polymorphism means?
what type of questions
Why do we use encapsulation in oops?
What is difference between polymorphism and inheritance?
Why interface is used?
What does sksksk mean in text slang?