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
Answers were Sorted based on User's Feedback
Answer / 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 |
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.
is there any choice in opting subjects like 4 out of 7
what is virtual function in c++
what is function overloading..?
Do you know about multiple inheritance?
What is encapsulation and abstraction? How are they implemented in C++?
0 Answers Agilent, ZS Associates,
Please tell me the oops concept with detailed answer
Prepare me a program for the animation of train
1. Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)
what is the main difference between sizeof() operator in c and c++
What is meant by oops concept?
Difference between new operator and operator new