Arrays and pointers
15
const int ARRAY_SIZE = 50;
typedef float A[ARRAY_SIZE];
*A is equivalent to A[0]
*(A+1) is equivalent to A[1]
float * B;
B = new float[ARRAY_SIZE]; // is another way of creating an array
B[1], B[2] are acceptable as references.
Previous slide
Next slide
Back to first slide
View graphic version