Handout 10b

Pointer Jargon



Given the following code:
int stuff[10];
int * stuffIt = stuff;

Question: Refer to the second element of stuff using array subscript notation pointer/offset notation with the array name as the pointer, pointer subscript notation, and pointer/offset notation.

array subscript notation: stuff[1] 

pointer/offset notation with the array name as the pointer: *(stuff + 1)

pointer subscript notation: stuffIt[1]

pointer/offset notation: *(stuffIt + 1)