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 a scope resolution operator?
What is difference between #define and const?
what is new operator in c++
How many types of access specifier in c# and vb.net?
what is abstract class ? when is used in real time ? give a exp
What is abstract class in oops?
define a string class. overload the operator == to compare two strings
2 Answers Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,
What are the 4 pillars of oop?
design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }
i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????
write a program for function overloading?
14 Answers HCL, InfoCity, TATA,
What is public, protected, private?