Advertisement
dllbridge

Untitled

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