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
What is #include iostream h in c++?
Describe private, protected and public?
What character terminates all character array strings a) b) . c) END
what is the difference between overloading & overriding? give example.
What is binary search in c++?
What is a container class?
What is the difference between function overloading and operator overloading?
What is ctime c++?
How are the features of c++ different from c?
When should we use multiple inheritance?
Comment on assignment operator in c++.
What is the difference between a "copy constructor" and an "assignment operator" in C++?
What are the extraction and insertion operators in c++? Explain with examples.
Who created c++?
What is the main function c++?