Advertisement
dllbridge

Untitled

Aug 8th, 2024
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. #include       <stdio.h>
  2.  
  3.  
  4. int nNumb[4] = {100, 2, 3, 4};
  5.  
  6. void foo(int *);                                  //                      åñëè óáåðó nNumb,
  7.  
  8.  
  9. ////////////////////////////////////////////////////
  10. int main()                                        //
  11. {
  12.     foo(nNumb);
  13.    
  14.     //printf("%d\n", n);
  15. }
  16.  
  17.  
  18. ////////////////////////////////////////////////////
  19. void foo(int *p)                                  //
  20. {
  21.     for (int i = 0; i < 4; i++)
  22.     {
  23.        
  24.          printf("%3d\n", p[i]);
  25.     }
  26. }
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement