Solved

If a Program Requires a Dynamically Allocate Two-Dimensional Array, You

Question 19

Multiple Choice

If a program requires a dynamically allocate two-dimensional array, you would allocate the memory by using


A) p1 = new int*[numRows]; forint i=0; i < numRows; i++)
P1[i] = new int[numColumns];
B) p1 = new int*[numRows][numColumns];
C) p1 = new[numRows][numColumns]int;
D) none of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions