CodePudding user response:
Are new came out in a heap, as local pointer variable pointing to heap memory within the stack, the pointer variable itself in the stack, but is the new out of memory in the heapCodePudding user response:
CodePudding user response:
This will divide the situation actually, if you are new to the object without overloading the new operator, it must be on the heap, if you are new to the object of overloading the new, will have to see the specific code, it is possible that in the stack space,