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 / durga shankar mishra

write answer of the 0

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1443


What is advantage of inheritance?

675


which feature are not hold visual basic of oop?

1713


What is a function in oop?

622


What is encapsulation process?

572






Who invented oop?

642


What is destructor in oop?

615


What is overriding in oops?

592


What is constructor overloading in oop?

595


What are the 5 oop principles?

591


Why do while loop is used?

568


What is multilevel inheritance?

713


What type of loop is a for loop?

673


Which language is pure oop?

542


What is encapsulation in oops?

527