[prev] 56 [next]

Pointers

Pointers represent memory addresses/locations
  • number of bits depends on memory size, 64-bits on cse machines
  • data pointers reference addresses in data/heap/stack regions
  • function pointers reference addresses in code region
Many kinds of pointers, one for each data type, but
  • sizeof(int *)  =  sizeof(char *)
    sizeof(double *)  =  sizeof(struct X *)