Skip to content

Instantly share code, notes, and snippets.

@eraserhd
Created August 24, 2014 18:10
Show Gist options
  • Select an option

  • Save eraserhd/7824f94aa35f17e2e807 to your computer and use it in GitHub Desktop.

Select an option

Save eraserhd/7824f94aa35f17e2e807 to your computer and use it in GitHub Desktop.
#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