Skip to content

Instantly share code, notes, and snippets.

@AlexsJones
Created October 15, 2012 14:41
Show Gist options
  • Select an option

  • Save AlexsJones/3892845 to your computer and use it in GitHub Desktop.

Select an option

Save AlexsJones/3892845 to your computer and use it in GitHub Desktop.
#include <stdio.h>
print_number(int *x)
{
++x;
printf("Number %d\n",x);
}
int main(int argc, char **argv)
{
int x[5] = { 0, 1, 3, 4 };
int _y;
for(_y = 0; _y < 5; ++_y)
{
print_number(x[_y]);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment