#include #include using namespace std; int main(){ char first[50] = "apple"; const char *second = "goat"; first[2] = 'K'; for(size_t i = strlen(first), j = 0; second[j]; ++i, ++j){ first[i] = second[j]; } cout << first << endl; return 0; }