Creating a matrix function which accepts 2d array


Question 1) Create a complete function called matrix_sort which accepts the matrix int A[n][m]; (i.e., a 2D integer array named A) as input where integers n and m imply matrix dimensions such that A is of type Anxm. Create a main function or a complete design. Matrix must be defined inside your main() function, not as a globally. Matrix must then be passed by reference, i.e., matrix_sort must accept only the address of where matrix is in your RAM, and modify it in-place. Suppose the matrix has already been completely filled by random integers from 1 to 1000 by main function or some other function. matrix_sort should reorder these numbers in increasing order. matrix_sort should sort the matrix elements inside matrix by moving the elements around according to their value, starting at A[0][0] and following in row order, where largest number appears at A[n-1][m-1].

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Creating a matrix function which accepts 2d array
Reference No:- TGS04674

Expected delivery within 24 Hours