Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1.  
  2. #include "my.h"
  3.  
  4. void small(int rownum, int colnum, int** table)
  5.  
  6. {
  7. int j;
  8. int i;
  9. int small;
  10. int z;
  11.  
  12. printf("f.The various first indices of the smallest int for each and every row is:\n");
  13.  
  14. small = INT_MAX;
  15. //large = INT_MIN;
  16.  
  17.  
  18. //small
  19.  
  20.  
  21. for( i=0; i<rownum; i++)
  22. {
  23. for( j=0; j<colnum; j++)
  24.  
  25. if (table[i][j] < small )
  26. z = j;
  27. small = table[i][j];
  28.  
  29. printf("%4d" , z);
  30. }
  31. small = INT_MAX;
  32. return;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement