Question: Write a program that creates two 2D dynamic array and fill them by taking the values from the user. Pass these arrays into a function

Write a program that creates two 2D dynamic array and fill them by taking the values from the user. Pass these arrays into a function named matProduct. This function performs matrix multiplication of these arrays. Remember multiplication of two matrix is only possible if the number of columns of first matrix is same as the number of rows of second matrix. Display the resultant matrix and store its data in a newly created 1D array such that it stores the data row-rise i.e. (row major form). Sort the data of this 1D array and return the sorted array to main function. Display the contents of sorted 1D array inside main function.

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!