#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main()
{
char A[10] = { "ABCDE" };
int i = 0;
char B[10][10] = { "" };
char C[10] = { "" };
while (i<10)
{
strcpy(B[i], A);
i++;
}
printf("%s\n%s\n%s\n", B[1], B[2], B[3]);
return 0;
}
运行结果: