Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. int main( )
  3. {
  4. int a = 5;
  5. int *b;
  6. b = &a;
  7.  
  8. printf ("value of a = %d\n", a);
  9. printf ("value of a = %d\n", *(&a));
  10. printf ("value of a = %d\n", *b);
  11. printf ("address of a = %u\n", &a);
  12. printf ("address of a = %d\n", b);
  13. printf ("address of b = %u\n", &b);
  14. printf ("value of b = address of a = %u", b);
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement