Skip to content

Instantly share code, notes, and snippets.

@regehr
Created September 16, 2016 04:06
Show Gist options
  • Save regehr/51b00cb2a28874b7bf79751b7998d55d to your computer and use it in GitHub Desktop.
Save regehr/51b00cb2a28874b7bf79751b7998d55d to your computer and use it in GitHub Desktop.
int a1[10];
int *a2;
int foo1(int i) {
return a1[i];
}
int foo2(int *a, int i) {
return a[i];
}
int foo3(int i) {
return foo2(a1, i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment