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:

Verified
Correct Answer:
Verified
Related Questions
Q14: Write the code to declare a dynamic
Q15: What is the output of the following
Q16: Write the code to return the dynamic
Q17: Given that a typedef for IntPtr defines
Q18: The size of dynamic arrays must be
Q20: The size of a dynamic array is
Q21: Dynamic variables are created at _
Q22: Which of the following correctly declare 3
Q23: Which of the following statements correctly returns
Q24: If p1 is an integer pointer variable,