Local variable gets memory in stack and dynamically allocated memory for pointer variable gets space in heap.
Explain memory mapping.
Knowledge point
Local variable gets memory in stack and dynamically allocated memory for pointer variable gets space in heap.
Explain memory mapping.