Skip to content

Instantly share code, notes, and snippets.

@bxt
Created May 27, 2011 11:50
Show Gist options
  • Save bxt/995090 to your computer and use it in GitHub Desktop.
Save bxt/995090 to your computer and use it in GitHub Desktop.
Arrays access translates to pointer arithmetic in C/C++
int a[1];
a[0]=1;
if(0[a]==a[0]==1);
// a[b] == *(a+b) == *(b+a) == b[a]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment