caixu

//把str1放到str2后,即str2+str1

char str1[10]="world!";
char str2[20]="Hello ";
strcpy(str2+strlen(str2),str1);
printf("%s",str2);

//输出将是:Hello world!

分类:

技术点:

相关文章:

  • 2022-01-29
  • 2021-10-26
  • 2021-06-06
  • 2022-12-23
  • 2021-10-21
  • 2018-09-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
相关资源
相似解决方案