'Dynamically allocated pointer data storage

int* p = new int; Hello everyone!!! I have a question about the pointer, in the memory area, what is the size of the above statement? pointer p is 8 BYTE, new int is 4 BYTE so the sum is 12 BYTE? Hope everyone answers.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source