Created
December 15, 2011 01:04
-
-
Save ashgti/1479362 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #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