Arrays in Memory
For the following definition: double a[6];the compiler interprets the address of a[2] as: a[0] + 2*sizeof(double)Each time an element is referenced, the compiler computes the address:address = reference + index*sizeof(type)
Previous slide
Next slide
Back to first slide
View graphic version