The strcat(first_string, second_string) function concatenates two strings and result is returned to first_string.
#include#include int main(){ char ch[10]={'h', 'e', 'l', 'l', 'o', '\0'}; char ch2[10]={'c', '\0'}; strcat(ch,ch2); printf("Value of first string is: %s",ch); return 0; }
Output: