Advertisement
Vankata17

Pointer in c

Mar 7th, 2022
804
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main(){
  4.     int num = 20;
  5.     double grade = 4.54;
  6.     double* gr = &grade;
  7.     int* p = &num;
  8.     printf("%p\n",sizeof(int*));
  9. printf("%f\n", gr);
  10.     printf("%p\n",p);
  11.     printf("%d\n", *p);
  12.  
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement