I have a C++ program as below
#include <iostram>
using namespace std;
class abc
{
public:
abc()
{
cout << "in Constructor\n";
};
};
int main()
{
abc a();
}
I compiled and I saw that "in Constructor" is not getting printed which means constructor is not getting called. I was wondering that both abc a and abc a() are same and both will create object a. But that seems to be wrong. Can any one please let me know what abc a() means because I didn't get the compilation error also.