Beruflich Dokumente
Kultur Dokumente
POINTER
•Pointer = a variable that contains memory address of
another variable as its value
pv = &v
Address of v Value of v
pv v
Relationship between pv and v (where pv = &v and v = *p
void main()
{
int *room; /* room is a pointer */
int suite=121; /* suite number is 121 */
room=&suite; /* room points to the address
of suite */
printf(“%d”, *room);
Tips to remember
int *room;