Advertisement
Nitin400

Program to demonstret the uges of this pointer

Sep 24th, 2020
2,059
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int name = 20;
  5.     int *p;
  6.     p=&name;
  7.     printf("\n address of variable name : %u,",&name);
  8.     printf("\n address in stores in pointer variable p : %u ",&p);
  9.     printf("\n address of variable name : %d",&p);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement