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 container class.
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
Why we use #include conio h in c++?
What is the best ide for c++?
What is a static element?
How a macro differs from a template?
What does the linker do?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What is the purpose of extern storage specifier?
What is the basic structure of c++ program?
What is a template in c++?
How do you flush a buffer in c++?
What do you mean by volatile and mutable keywords used in c++?
What things would you remember while making an interface?
What is std :: endl?