Advertisement
luizaspan

Aula ponteiros

Jun 16th, 2015
475
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.  
  3. int main(void)
  4. {
  5.   double a,*pd;
  6.  
  7.   printf("%p %p \n",&a,pd);
  8.  
  9.   pd=&a;
  10.  
  11.   printf("%p %p \n",&a,pd);
  12.  
  13.   return 0;
  14. }
  15.  
  16. // endereço representado em hexadecimal (0xnºhexa)
  17. // (nil) -> NULL (ou 0); ponteiro não aponta para nada
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement