上一个问题已查错解决!
#include <stdio.h>void main()
{
char a[] ="Yan yusheng is clever!",b;
int i;
for(i = 0;*(a + i) != '\0';i++)
{
*(b + i) = *(a + i);
}
*(b + i) = '\0';
printf("The string a is:%s\n",a);
printf("The string b is:");
for(i = 0;*(b + i) != '\0';i++)
{
printf("%c",b);
}
printf("\n");
}
页:
[1]