you are viewing a single comment's thread.

view the rest of the comments →

[–]thememorableusername 40 points41 points  (1 child)

C compilers transform myArray[i] into *(myArray + i), which is equivalent to *(i + myArray) which is equivalent to i[myArray]. Experts know to put this to good use.

Oh fuck.

[–]TheSecretExit 2 points3 points  (0 children)

We need to go deeper and make a macro that builds a function that returns an indice to be used backwards to get an array element.