#include <stdio.h>
#include <windows.h>
int main()
{ /*strncat的用法extern char *strncat(char *dest,char *src,int n);
 将src所指字符串的n个字符填加到dest所指的字符串尾部*/
 char d[20]="abcd";
 char *p="efgh";
 system("cls");
 strncat(d,p,4);
 printf("%s\n",d);
 return 0;
}

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
猜你喜欢
  • 2021-11-02
  • 2022-01-08
  • 2022-01-01
  • 2021-09-25
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
相关资源
相似解决方案