“Pointers to memory” Project –
Memory Layout and Registers
•
Two memory addresses (locations):
•
“a” and “b”
•
int a, b;
•
Two memory addresses (locations):
•
“pa” and “pb”
•
int *pa, *pb;
•
int *pa
is a pointer to
int
(memory cell
pa
contains the address of another memory cell that
contains an integer value)
•