Question: Write a program that calls a function to calculate the sum of two matrix. The main program should create two 2 D array of 3

Write a program that calls a function to calculate the sum of two matrix. The main program should create two 2D array of 3*3 and initialize the values from 0 to 49 using a random generator. Take seed as an input from user. so you will use srand(seed) instead of srand(time(0)).
This program should call the function addMatrix(matrix1, matrix2, resultMatrix). It should add matrix1 and 2 and store the result in resultMatrix. It should also call the function printResult (matrix1, matrix2, resultMatrix, +) and display the result as shown in the output.

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!