Solved

Given That P1 Is a Pointer Variable of the String

Question 9

Multiple Choice

Given that p1 is a pointer variable of the string class, which of the following are legal statements?


A) p1 = new int;
B) cout << *p1;
C) p1 = new char[10];
D) *p1 = new string;
E) B and D

Correct Answer:

verifed

Verified

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

Related Questions