Another Example
int *p1;
p1 = new int;
*p1 = 42;
42 is placed in the dynamic variable that p1 points to.
Previous slide
Next slide
Back to first slide
View graphic version