Advertisement
dllbridge

Untitled

Dec 30th, 2024
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1.  
  2. #include  "foo.h"
  3.  
  4.  
  5.  
  6. //////////////////////////////////////////////////////////
  7. int main()                                              //  
  8. {
  9.  
  10.     info_arr.znak = 1;
  11.  
  12.     int *p   = RI_Create_Array(10);
  13.     int  min = p[0];
  14.     int indx =   0;
  15.    
  16.     RI_Monitor_Array();
  17.  
  18.  
  19.     for(int i = 1; i < info_arr.n; i ++)
  20.     {
  21.            
  22.         if(min > p[i])
  23.         {
  24.             min = p[i];
  25.             indx =  i;
  26.         }
  27.        
  28.    
  29.     }
  30.     printf("indx = %d\n", indx);
  31. }
  32.  
  33.  
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement