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 |
What is difference between abstraction and encapsulation?
What is the difference between an object and a class?
What does and I oop mean?
How to Increment the value of the empid E001 for each and every employee by using the programe?
write a program that takes input in digits and display the result in words from 1 to 1000
What does sksksk mean in text slang?
what are the disadvantages of C++?
25 Answers ATS, Infosys, UNI, Wipro,
What makes a language oop?
How do you use inheritance in unity?
2. Give the different notations for the class.\
What is a friend function & its advantage?
Contrast OOP and SOA. What are tenets of each?
1 Answers Siebel Systems, Wipro,