Class A
{
public:
A()
{
cout << "constructor called";
}
};
int main()
{
A obj; // constructor getting called
A obj1(); // constructor not getting called
}
When i instantiate obj object , my constructor getting called. But when i instantiate obj1 , my constructor not getting called.
I would like to know the reason for it.