Created
August 24, 2014 18:10
-
-
Save eraserhd/7824f94aa35f17e2e807 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 <stdio.h> | |
| #include <stdlib.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| int a_bunch_of_ints[100]; | |
| int *pointer_a; | |
| int *pointer_b; | |
| pointer_a = &a_bunch_of_ints[2]; | |
| pointer_b = &a_bunch_of_ints[9]; | |
| *pointer_a = 76; | |
| *pointer_b = 42; | |
| printf("%d\n", a_bunch_of_ints[2]); | |
| exit(0); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment