Advertisement
luizaspan

Aula ponteiros II

Jun 16th, 2015
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5.   double a,b,*pd;
  6.  
  7.   // printf("%p %p \n",&a,pd);
  8.  
  9.   pd=&a;
  10.   a=3.14;
  11.   b=*pd; // operador de referência
  12.  
  13.   printf("%p %p %lf\n",&a,pd,b);
  14.  
  15.   return 0;
  16. }
  17.  
  18. // endereço representado em hexadecimal (0xnºhexa)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement