Pointer and “pointer to”
10/09/98
9
B.Ramamurthy
Consider the sample:
int* P;
Here P point to an address. To assign value to its contents:
*P = 6; can be used.
In other words, when P refers to a address *P refers to its contents.
Memory can be dynamically allocated using new built-in function of C++ language.
P = new int;
Previous slide
Next slide
Back to first slide
View graphic version