Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions