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 highest level of cohesion?
Why is polymorphism needed?
How do you answer polymorphism?
What is pointer in oop?
What is the difference between encapsulation and polymorphism?
Can destructor be overloaded?
What is object-oriented programming? Webopedia definition
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is static in oop?
What causes polymorphism?
Can an interface inherit a class?
Can you name some types of inheritance?
Can you inherit a private class?
How many human genes are polymorphic?
What does and I oop mean?