Created
February 15, 2015 00:14
-
-
Save danimal141/745c50e36a4242188f23 to your computer and use it in GitHub Desktop.
Pointers in 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
#include <stdio.h> | |
int main() { | |
int a = 10; | |
int *pa = &a; | |
int **ppa = &pa; | |
printf("%p\n", pa); | |
printf("%d\n", *pa); | |
printf("%p\n", ppa); | |
printf("%p\n", *ppa); | |
printf("%d\n", **ppa); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment