Last active
December 11, 2015 14:49
-
-
Save arn-e/4616698 to your computer and use it in GitHub Desktop.
ptr_sample.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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