Hi,
I the below code i could see 2 constructors and 3 destructors being called....i want to know why....can anyone help me in knowing this???
class e
{
public:
e()
{
cout<<"Contructor\n";
}
~e()
{
cout<<"Destructor\n";
}
void f(e e1)
{
cout<<"In e\n";
}
};
int main(int argc, char* argv[])
{
{
e ee;
e ee1;
ee.f(ee1);
//printf("Hello World!\n");
//cout<<"Raghava"<<endl;
}
int t;
cin>>t;
return 0;
}