C Program to Sort Matrix Rows Ascending and Columns Descending
Given an M×N matrix, this program produces two independently sorted versions: Rows sorted ascending — within each row, elements are rearranged smallest to largest. Rows are independent of each other. Columns sorted descending — within each column, elements are rearranged largest to smallest (operating on the original matrix, not the row-sorted one). Columns are independent …