Page t039, go to NEXT,
PREVIOUS, INDEX
Pointers and Arrays
Consider
float x[5];
Our memory model is
- what does the label x mean?
- x is a pointer to the first element
- *x and x[0] are the same
- x and &x[0] are the
same
- elements of an array can be accessed either way
- but x is an array object, not a pointer object
C Course, 22-jan-1997,
Peter Klok,
pfk@hef.kun.nl