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 does and I oop mean?
Which language is not a true object oriented programming language?
What is overriding in oop?
Is enum a class?
Why is polymorphism used?
Can enum be null?
Write a program to reverse a string using recursive function?
Why do we use polymorphism in oops?
Is abstract thinking intelligence?
write a program to find 2^n+1 ?
What does I oop mean?
what are the ways in which a constructors can be called?
What is the difference between encapsulation and polymorphism?
What is oops and why we use oops?
why reinterpret cast is considered dangerous?