C++ Cstring function strcat takes 2 strings as parameters and concatenate them , return to the first

preview_player
Показать описание
The strcat_s Function - The strcat_s function takes two strings as parameters and concatenates them, returning a single string that consists of all the character of the first string followed by the characters of the second string.
char professorName[] = "Professor Liu";
char college[] = "Rio Hondo College";

// strcat
cout "strcat demonstration";
strcat(professorName, college);
cout professorName ;

To use strcat_s, string1 should be large enough to hold string1 plus string 2 plus a null terminator.
Рекомендации по теме
join shbcf.ru