SHARE
TWEET

Untitled

a guest Oct 14th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top