Virajsinh

A_PRM_02

Oct 7th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. /* Write a Program to Display Size Of Pointer */
  2.  
  3. #include<stdio.h>
  4. #include<conio.h>
  5.  
  6. void main()
  7. {
  8.     int num=5;
  9.     int *ptr=&num;
  10.  
  11.     clrscr();
  12.     printf("\n Value Of Num : %d",num);
  13.     num=10;
  14.     printf("\n Value Of Num : %d",num);
  15.     *ptr=15;
  16.     printf("\n Value Of Num : %d",num);
  17.     getch();
  18. }
Add Comment
Please, Sign In to add comment