Skip to content

Instantly share code, notes, and snippets.

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

  • Save eraserhd/9f253c5ed3a60d028ecc to your computer and use it in GitHub Desktop.

Select an option

Save eraserhd/9f253c5ed3a60d028ecc 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 kind_of_like_a_pointer;
a_bunch_of_ints[2] = 76;
a_bunch_of_ints[9] = 42;
kind_of_like_a_pointer = 2;
printf("%d\n", a_bunch_of_ints[kind_of_like_a_pointer]);
exit(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment