gpsgiraldi

2024_ponteiros_lista_ex6a

Jun 29th, 2024 (edited)
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | Source Code | 0 0
  1. /******************************************************************************
  2. CORRIJA:
  3.  int a, *p;
  4.  a = 5;
  5.  p = a;
  6.  printf(“Conteúdo de p: %i\n”, p);
  7. *******************************************************************************/
  8. #include <stdio.h>
  9.  
  10. int main()
  11. {
  12.  
  13.     int a;
  14.     int *p;
  15.     a = 5;
  16.     p = &a;
  17.     printf("Conteúdo de p: %i\n", *p);
  18.    
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment