When I create a class object let's say
class A { public: A() {} }; A a;
Is only the constructor called? Or is the new operator used implicitly?
How should we do A* b = new A();
Also, where will a and b be stored in memory? Stack or heap?
source share