Question: C++ C++ a.Write a statement that declares arry2D to be pointer to an array of pointers wherein each pointer is of type double. Answer: ___________________

C++

C++

a.Write a statement that declares arry2D to be pointer to an array of pointers wherein each pointer is of type double.

Answer: ___________________

b. Fill in the underlines below to complete a C++ code that dynamically creates a two-dimensional array of 5 rows and 10 columns and arry2D contains the base address of that array.

Answer:

arry2D = ___________________;

for (int row = 0; _________; row++)

arry2D[row] = _______________;

c. Fill in the underlines below to complete a C++ code that outputs the data stored into the array arry2D one row per line.

Answer:

for (int row = 0; _________; row++)

{

for (int col = 0; _________; col++)

cout << ______________ << " ";

cout << endl;

}

d. Fill in the underlines below to complete a C++ code that deallocates the memory space occupied by the two-dimensional array to which arry2D points.

Answer:

for (int row = 0; row < 5; row++)

__________________; //Free each sub-array

__________________; //Free the array

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!