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 polymorphism means?
Precompilation ?
What is namespace?
WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.
what is meant by files?
What are virtual classes?
Program to check whether a word is in all capital letters
What is conditional Compilation?
What is constructor overloading in oop?
What is polymorphism what is it for and how is it used?
Write a program to multiply 3x3 matrics
explain the concepts of oops?