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
What is the point of polymorphism?
What is the difference between encapsulation and polymorphism?
What is stream in oop?
What is the real time example of inheritance?
Can static class have constructor?
How to call a non virtual function in the derived class by using base class pointer
What are benefits of oop?
write knight tour problem which is present in datastructure
What do you mean by abstraction?
What does I oop mean?
How do you define a class in oop?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is the renewal class?
What is abstraction and encapsulation?
Can main method override?