Feedback for subjective question
Question 1: Design and implement a String class that makes the following code work properly. The class should store the string in a dynamically allocated memory.
int main()
{
String X, Y = "World!";
X = "Hello " + Y;
cout<< X << endl;
return 0;
}
int main()
{
String X, Y = "World!";
X = "Hello " + Y;
cout<< X << endl;
return 0;
}
Current Answer:
Be the first to post an answer to earn 100CR.