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 / raju
ans 0
first it return value ofter that it increment
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is balance factor?
What is the fundamental idea of oop?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
write string class as your own class in java without using any built-in function
Advantage and disadvantage of routing in telecom sector
What does it mean when someone says I oop?
What is the purpose of polymorphism?
Prepare me a program for the animation of train
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is persistence in oop?
What is an example of genetic polymorphism?
What is overloading in oop?
Why is polymorphism used?
What is oops?what is its use in software engineering?
What is a null tree?