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
Q25: What is the output of the following
Q26: Given that p1 is a pointer variable
Q27: Which of the following is not true?
A)
Q28: What is the output of the following
Q29: Given that p1 is an integer pointer
Q31: What is wrong with the following code
Q32: Assuming that the pointer variable p1 is
Q33: Which of the following statements correctly prints
Q34: Given that p1 is a pointer, p1++
A)
Q35: Which of the following correctly declares a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents