#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char first[] = "timo";
char second[] = "SB";
int lenth = strlen(first) + strlen(second) + 1;
char *result=new char[lenth];
strcpy(result,first);
strcat(result,second);
while(*result)
{
cout<<*result;
*result++;
}
system("pause");
delete [] result;
return 0;
#include<cstring>
using namespace std;
int main()
{
char first[] = "timo";
char second[] = "SB";
int lenth = strlen(first) + strlen(second) + 1;
char *result=new char[lenth];
strcpy(result,first);
strcat(result,second);
while(*result)
{
cout<<*result;
*result++;
}
system("pause");
delete [] result;
return 0;
}