Advertisement
Diamyx

adrese

Sep 20th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. //adrese
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5.  
  6. int main()
  7. {
  8.     int *p;
  9.     int x=10;
  10.     p=&x;
  11.  
  12.     float *p1;
  13.     float y=5.23;
  14.     p1=&y;
  15.     float* *p2;
  16.     p2=&p1;
  17.  
  18.     printf("adresa lui x = %x\n",&x);
  19.     printf("valoarea memorata la adresa din p = %d\n",*p);
  20.    
  21.     printf("adresa adresei lui y = %x\n",p2);
  22.     printf("y = %f",**p2);
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement