#include<iostream>
class _ctor
{
public:
_ctor() { std::cout<<"\nCtor";}
~_ctor(){ std::cout<<"\nDtor";}
};
_ctor A(); // --> Is the Constructor Really called? I do not see the Output printed
//_ctor A;
int main(){
return 0;
}
The Output of the above code is given in this Link
I don't see the constructor getting called, what could be the problem?? If it is not supposed to be called then what does this mean _ctor A();
?