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 do you mean by variable?
What is destructor oops?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is multilevel inheritance explain with example?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is advantage of inheritance? What is class and object in oops? Is oop better than procedural? Is this job good for future?
can do this job post grduate student? What is property in oops? How do you achieve polymorphism? What are functions in oop? Can enum be null? What is the difference between static polymorphism and dynamic polymorphism? What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?