i figured out what my problem is but i can't figure out the way to fix it
the problem is in my code, instead of sorting in descending from row with the most elements to the row with the least...
Type: Posts; User: pcshano
i figured out what my problem is but i can't figure out the way to fix it
the problem is in my code, instead of sorting in descending from row with the most elements to the row with the least...
you initialize them from another function which i called it buildTable
int** buildTable (int* nrows){
int rowNum;
int colNum;
int** table;
int row;
printf("Enter the...
i just put those numbers up there as example
what i need to sort are the rows
let's say i have a 2D array with 3 rows and each row with different number of elements
row 1: 8 elements
row 2: 3...
I need help with selection sorting a 2D array
let's say i have an array like
1 2 3 4 //4 elements
1 2 // 2 elements
1 2 3 4 5 //5 elements
1 2 3 //3 elements
1 //1 element
and...