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's the basic's in dot net
What is encapsulation process?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
Which is better struts or spring?
Which is not an object oriented programming language?
What is persistence in oop?
Why is destructor used?
Can a destructor be called directly?
Get me a number puzzle game-program
Explain the advantages of inheritance.
What does I oop mean?
Why do we need polymorphism in c#?
How long to learn object oriented programming?
Please send ford technologies placement paper 2 my mail id