Skip to content

Instantly share code, notes, and snippets.

@ashgti
Created December 15, 2011 01:04
Show Gist options
  • Select an option

  • Save ashgti/1479362 to your computer and use it in GitHub Desktop.

Select an option

Save ashgti/1479362 to your computer and use it in GitHub Desktop.
#include <cstdio>
int main() {
int a[10] = {0,1,2,3,4,5,6,7,8,9};
int i = 3;
printf("%d %d\n", (a[4]), 4[a]); // => 4 4
printf("%d %d\n", (a[i]), i[a]); // => 3 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment