Assuming that the pointer variable p1 is of the correct type and size is an integer with some value > 1, which of the following declarations are legal?
A) p1 = new string[size];
B) p1 = new ifstream[size];
C) p1 = new char[size*size];
D) A and B
E) A, B and C
Correct Answer:
Verified
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
Q30: If a program requires a dynamically allocate
Q31: What is wrong with the following code
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
Q36: If two pointer variables point to the
Q37: In which case would you consider using
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