Question: Write a C program which fills a matrix of size NxM with random integers between 0 and 100 and sorts the matrix in descending order.

 Write a C program which fills a matrix of size NxM

Write a C program which fills a matrix of size NxM with random integers between 0 and 100 and sorts the matrix in descending order. N and M are the numbers of rows and columns entered by the user Your program should implement the following functions a. void fiiMatrix (int A[][], int N, ?nt M): To generates NxH random numbers between 1 and 100 and stores them in array table. b. int sortMatrix(int A[,int rowsize, int colsize): To sort the input array c. void displayMatrix(int Al, int size): To display the array elements (N rows and M columns)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!