Advertisement
dllbridge

Untitled

Sep 23rd, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4.  //////////////////////////////////////////////////////////
  5.  void foo(int *p)                                        //  
  6.  {
  7.  
  8.      
  9.       for(int i = 4; i > -1; i--)
  10.       {
  11.              
  12.            printf("%d, ", p[i]);        
  13.       }
  14.  
  15.  }
  16.  
  17. ///////////////////////////////////////////////////////////
  18. int main()                                               //
  19. {
  20.  
  21.     int  nArr[9] = {10, 11, 12, 13, 14};
  22.  
  23.     foo(nArr);
  24.  
  25.  
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement