Advertisement
touhid_xml

Pointer in C

Jul 25th, 2015
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4.  
  5.     int a;
  6.     a = 10;
  7.  
  8.     int *p1 = &a;
  9.  
  10.     printf("Address of a: %x\n",&a);
  11.     printf("The value of p1 is: %d\n",*p1);
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement