Skip to content

Instantly share code, notes, and snippets.

@kylelk
Created November 19, 2014 08:47
Show Gist options
  • Save kylelk/d16d39ffc41e866c0f60 to your computer and use it in GitHub Desktop.
Save kylelk/d16d39ffc41e866c0f60 to your computer and use it in GitHub Desktop.
pointer_test.c
#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