Skip to content

Instantly share code, notes, and snippets.

@arn-e
Last active December 11, 2015 14:49
Show Gist options
  • Save arn-e/4616698 to your computer and use it in GitHub Desktop.
Save arn-e/4616698 to your computer and use it in GitHub Desktop.
ptr_sample.c
void ptr_sample()
{
int my_var = 15;
int *my_ptr = &my_var;
int **my_ptr_ptr = &my_ptr;
printf("my_var : %i\n", my_var);
printf("my_ptr : %i\n", *my_ptr);
printf("my_ptr_ptr : %i\n", **my_ptr_ptr);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment