Created
May 27, 2011 11:50
-
-
Save bxt/995090 to your computer and use it in GitHub Desktop.
Arrays access translates to pointer arithmetic in C/C++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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