Multiple Choice
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
Correct Answer:
Verified
Related Questions
Q5: Declare a pointer variable named ptr to
Q6: Dynamically created variables have no name.
Q7: What is the output of the following
Q8: Even though pointers point to addresses which
Q9: Given that p1 is a pointer variable
Q11: In which case would you consider using
Q12: If p1 is an integer pointer that
Q13: When you return a dynamic array to
Q14: Write the code to declare a dynamic
Q15: What is the output of the following