P
pinkisntwell
Is it more efficient to reference array contents through pointer
arithmetic than it is to use the standard referencing with the
brackets? For example, say I have this code:
int arr[100];
arr[5];
*(arr+5);
Are there any performance gains in using the pointer arithmetic way of
accessing?
arithmetic than it is to use the standard referencing with the
brackets? For example, say I have this code:
int arr[100];
arr[5];
*(arr+5);
Are there any performance gains in using the pointer arithmetic way of
accessing?