Created
November 19, 2014 08:47
-
-
Save kylelk/d16d39ffc41e866c0f60 to your computer and use it in GitHub Desktop.
pointer_test.c
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> | |
int main() | |
{ | |
int n[5] = { 3, 6, 9, 12, 15 }; | |
int *ptr = n; | |
ptr++; | |
printf("%d", *ptr); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment