69,373
社区成员
发帖
与我相关
我的任务
分享
char dest[20] = {""};
char *hello = "hello";
char *world = "world";
strcat(dest, hello);
strcat(dest, world);
printf("%s\n", dest);
getch();
return 0;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char dest[1024] = "hello";
strcat(dest,"您好");
printf("%s\n",dest);
}
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
void main()
{
char dest[20] = {""};
char *hello = "你好";
char *world = "world";
strcat(dest, hello);
strcat(dest, world);
printf("%s\n", dest);
}