Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main( )
- {
- int a = 5;
- int *b;
- int **c;
- b = &a;
- c = &b;
- printf ("value of a = %d\n", a);
- printf ("value of a = %d\n", *(&a));
- printf ("value of a = %d\n", *b);
- printf ("value of a = %d\n", **c);
- printf ("value of b = address of a = %u\n", b);
- printf ("value of c = address of b = %u\n", c);
- printf ("address of a = %u\n", &a);
- printf ("address of a = %u\n", b);
- printf ("address of a = %u\n", *c);
- printf ("address of b = %u\n", &b);
- printf ("address of b = %u\n", c);
- printf ("address of c = %u\n", &c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement