Hacker News new | past | comments | ask | show | jobs | submit login

> 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 :-)



Its still pointer arithmetic, its just done compile time rather then at execution. Still, you deserve style points :-)


Tell that to

  mov DWORD PTR [rsp - 8], 2




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: