Question: #include using namespace std; const int row = 4 ; const int col = 5 ; void display ( int * * matrix ) {

#include
using namespace std;
const int row =4;
const int col =5;
void display(int ** matrix){
// This function is used to output a matrix
// You are NOT allowed to use 'index' to access the elements in this 2D array.
// Therefore, if you use any [] in this part, you will get 0
// To Do (3 points)
return 0;
}
int ** createMatrix(){
// Please first create a matrix, and the shape is row*col
// To Do (2 points)
// Please initialize the matrix using the following values
//11,21,31,41,51
//12,22,32,42,52
//13,23,33,43,53
//14,24,34,44,54
// To Do (2 points)
return matrix;
}
int main(){
int ** my_matrix = createMatrix();
cout
 #include using namespace std; const int row =4; const int col

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!