[Solved] class object initialization in c++
[ad_1] For case 1 the A object instance is created on the heap, while the location of the variable c depends on if it’s a global, member or local variable. [Note: Question edited, case 2 totally different]For case 2 no object is created, as it is a function declaration. For case 2, the location of … Read more