Advertisement
dllbridge

Untitled

Aug 8th, 2024
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.62 KB | None | 0 0
  1.  
  2. #include       <stdio.h>
  3.  
  4.  
  5.  
  6.    
  7. void    foo(int *);
  8.  
  9. void sort(int *p);
  10.  
  11. ////////////////////////////////////////////////////
  12. int main()                                        //
  13. {
  14.    
  15.     int nNumb[20] = {1, -3, 101, 5, 6,8,102, 111, 32, 18, 23, 2, 3, 4, 5, 7,101, 0, 22, 4},
  16.                     i, n, k, d,
  17.                      *p;   
  18.    
  19.     foo (nNumb);
  20.     sort(nNumb);
  21.     foo (nNumb);   
  22. }
  23.  
  24.  
  25.  
  26. ////////////////////////////////////////////////////
  27. void sort(int *p)
  28. {
  29.    
  30. }
  31.  
  32.  
  33. ////////////////////////////////////////////////////
  34. void foo(int *p)
  35. {
  36.     for(int i = 0; i < 20; i++)
  37.     {
  38.         printf("%d, ", p[i]);
  39.     }
  40. }
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement