The bigger value in a matrix row
- by marionmaiden
How can I get the 2 biggers numbers of a matrix row?
If the matrix have a bigger number in other row, it can't be shown.
For example, let's suppose I have the following matrix
int mat[][] ={{1,2,3}{4,5,6}{7,8,9}};
if I search the 2 biggers numbers from the row 0, it should return me 1 and 2.