A41087. 函数之字符串连接
填空题
容易
知识点
题目描述
函数之字符串连接
题目描述
写一函数,将两个字符串连接
输入格式
两行字符串
输出格式
链接后的字符串
样例输入
123
abc
样例输出
123abc
参考答案
#include<stdio.h>
#include<string.h>
int main()
{
char a[1000],b[1000];
gets(a);
gets(b);
strcat(a,b);
puts(a);
return 0;
}
上一题
下一题