for sorting columns of 2D array what to do
for(int j=0;j<m;j++){
swap(what parameters to put)
}
for sorting columns of 2D array what to do
for(int j=0;j<m;j++){
swap(what parameters to put)
}
HI @anasmir24
U do not have to sort the column
the input are designed in a way that u already get a sorted 2D array
u simply input the 2D array
and then write the sorting logic
for(int i = 0 ; i < row ; i++) {
for(int j = 0 ; j < col ; j++){
cin >> a[i][j] ;
}
}