Beruflich Dokumente
Kultur Dokumente
ALLOCATION, STRINGS
• Examples:
int *p;
char *ch;
CS-203 Object Oriented Programming 4
Address Of Operator (&)
• The ampersand, &, is called the address of
operator
The following statement prints the value stored in the memory space
pointed to by p, which is the value of x.
return 0;
}
p = list;
copies the value of list (1000, the base address of the array) into p.