Question: A dynamic integer matrix is a two dimensional array of integers. It can also be described as a pointer to a pointer or an array
A dynamic integer matrix is a two dimensional array of integers. It can also be described as a pointer to a pointer or an array of pointers. In this program you will write several small utility functions to test mastery of this concept. The function signaturesand descriptions follow below. You may assume that the matrix will be a square matrix meaning that the number of rows equals the number of columns in the matrix.
Implement these functions:
int** makeMatrix(int n);
void printMatrix(int **A, int n);
bool sumEqual(int **A, int **B, int n);
bool isEqual(int **A, int **B, int n);
int diagonal(int **A, int n);
int** sumMatrix(int **A, int **B, int n);
int** product(int **A, int **B, int n);
int** subtractMatrix(int **A, int **B, int n);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
