十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
#include
#include
void mystr(char *arr2, char *arr1,int length)
{
int i;
for (i = 0; i < length; i++)
{
if (*(arr1+i) != '\0')
{
*(arr2 + i) = *(arr1 + i);
}
}
}
int main()
{
char arr1[]= "abcde";
char arr2[]= " ";
int length = strlen(arr1);
mystr(arr2, arr1,length);
printf("%s", arr2);
system("pause");
return 0;
}