Dynamic Memory Allocation and “new”
Example:
double *d_ptr;
d_ptr = new double;
The operator new allocates dynamic memory. d_ptr points to a newly allocated double variable from dynamic memory.
Previous slide
Next slide
Back to first slide
View graphic version