3 ms·
Array indices denote offsets from the base address. The first element is at the base address of the array, hence the offset is zero. It avoids a conditional whe
by glitchc 4y ago
Array indices denote offsets from the base address. The first element is at the base address of the array, hence the offset is zero. It avoids a conditional when resolving the address, introducing it would slow down all forms of memory access across the language domain.
- goatlover 4y agoYet somehow Fortran manages to be highly performant.