Код: Выделить всё
#include
#include
using namespace std;
int main() {
char myStr[20] = "";
const char a = 'T';
const char b = 'H';
strcat(myStr, &a);
strcat(myStr, &b);
strcat(myStr, "\0");
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79157449/how-actually-c-strcat-works[/url]
Мобильная версия