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...
sharukConsider 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)
other Questions(10)
- can u help
- Calculus
- Find the slope of the line that passes through the given points, (0,4) and (3,3).
- Managerial economics question
- Describe the differences between the levels of ensembles, including what is or isn’t worn, and the limitations of each. What are the levels of heat stresses and the symptoms at each level?
- What are the necessary conditions for a monopoly position in the market to be established?
- Does anyone have the answers to concept development practice page 29-1?
- Kyle has a drawing that has a RV and a tree on it and the drawing is 1/12 the size...
- Scenario solution
- Question 1 of 20 5.0 Points As output rises: A. AFC rises. B. AFC falls. ...