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 are guid? Why does com need guids?
What return value must conversion operators have in their declaration?
What is the default access level?
What does it mean to declare a member function as static?
What gives the current position of the put pointer?
How many standards of c++ are there?
What is scope resolution operator in c++ with example?
Name the operators that cannot be overloaded in C++?
Out of fgets() and gets() which function is safe to use and why?
Why do we use vector in c++?
Difference between overloading vs. Overriding
What do you mean by translation unit in c++?
Is atoi safe?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
Explain the concept of memory leak?