given the code segment below
void main()
{
cout<<"my no. is";
}
question is how can we get the output hai aravind my no. is
99999999999 without editig the main().
Answer Posted / pankaj rathor
#include <iostream>
using namespace std;
class dummy
{
public:
dummy()
{
cout<<"Hai Arvind ";
}
~dummy()
{
cout<<" 99999999999";
}
};
dummy obj;
int main()
{
cout<<"my no. is";
return 0;
}
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
Explain one method to process an entire string as one unit?
Is set c++?
What do you mean by volatile and mutable keywords used in c++?
What is difference between c++ 11 and c++ 14?
How do you add an element to a set in c++?
What is the fastest c++ compiler?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What are the comments in c++?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
How much do c++ programmers make?
Explain class invariant.
What is the use of "new" operator?
why and when we can declar member fuction as a private in the class?
which operator is used for performing an exponential operation a) > b) ^ c) none
What size is allocated to the union variable?