Advertisement
luizaspan

Aula ponteiros III

Jun 16th, 2015
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5.   int i,*x;
  6.   x=&i;
  7.  
  8.   printf("%p %p \n",&i,x);
  9.  
  10.   *x=10; // mudando o valor de i via x
  11.  
  12.   printf("%d \n",i);
  13.  
  14.   return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement