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...

profilesharuk
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
    • 11 years ago
    • 999999.99
    Answer(0)
    Bids(0)