But there are some exceptions where other function get called
before main actually called.
after running this first constructor will be called later main executed.
class mine {
public:
mine()
{
cout<<"Constructor called \n";
}
};
mine obj1;
int main() {
cout<<"we are in main";
return 0;
}