Details of this Paper

Consider the definition of the following struct;typedef struct;int rows;int colums;int data[10][10];matrix;Write following functions;InputMatrix: This function should take a pointer...

Description

solution


Question

Consider the definition of the following struct;typedef struct;int rows;int colums;int data[10][10];matrix;Write following functions;InputMatrix: This function should take a pointer of type matrix, take input from the user to initialize rows and colums data members, and take input from the user for matrix data.;AddMatrix: This function should take two parameters of type matrix m1 and m2, compute m1+m2 in m3 and return the resultant matrix.;Your main function should work as follows;1. Declare three variables of type matrix;2. Input matrix 1 and 2 from the user using function InputMatrix;3. Add matrices 1 and 2 using function AddMatrix;4. Get the resultant matrix in matrix3

 

Paper#72737 | Written in 18-Jul-2015

Price : $22
SiteLock