eg0rmaffin

ex00full

Jul 4th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void putint(int a)
  4. {
  5.     printf("%i    ", a);
  6. }
  7.  
  8. //    int main()
  9. //    {  
  10. //    int A;
  11. //    int* ptA;
  12.    
  13. //    ptA = &A;
  14. //    *ptA = 42;
  15. //    putint(*ptA);
  16. //    }
  17.  
  18.  
  19.  
  20.  
  21.  
  22. int        main(int *nbr)
  23. {
  24.     int a = 3;
  25.     ft_ft(&a);
  26.     putint(a);
  27. }
  28.  
  29.  
  30.  
  31. void        ft_ft(int *nbr)
  32. {
  33.     int* ptA;
  34.    
  35.     ptA = nbr;
  36.     *ptA = 42;
  37. }
  38. //void        ft_ft(int *nbr);
  39. //void        ft_ft(int *nbr);
  40. //void        ft_ft(int *nbr);
  41. //void        ft_ft(int *nbr);
Advertisement
Add Comment
Please, Sign In to add comment