3 ms·
> they are accessed using pointer arithmetic Not always. Consider: int a[3]; a[1] = 2; This is not using pointer arithmetic. Dump the generated code
by WalterBright 7y ago
> they are accessed using pointer arithmetic
Not always. Consider:
int a[3];
a[1] = 2;
This is not using pointer arithmetic. Dump the generated code if you don't believe me :-)
- quelsolaar 7y agoIts still pointer arithmetic, its just done compile time rather then at execution. Still, you deserve style points :-)
- saagarjha 7y agoTell that to mov DWORD PTR [rsp - 8], 2