c语言,strcpy

#include <stdio.h>
#include <string.h>
int main()
{
 char string[10];
 char *str="abcdefghij";
 strcpy(string,str);
 //strcpy原型
 //strcpy(char *,const char *);
 printf("%s ",string);
 return 0;
}

原文地址:https://www.cnblogs.com/wsq724439564/p/3258178.html