✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Код програми, поданий нижче буде скомпільовано без помилок:
#include<iostream>
using namespace std;
int main()
{
char str[20] = "Red color";
int size = strlen(str) + 1;
char * ptr = new char[size];
strcpy_s(ptr, size, "Blue");
strcat_s(ptr,size, str);
cout << ptr << '\t' << str;
delete[] ptr;
return 0;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!