Advertisement
Guest User

Untitled

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