#include <stdio.h>
void main ()
{
char *a[5];
char b[5][50];
int i;
printf("please input char:\n");
for (i=0; i<5; i++)
{
*(a+i) = b[i];
scanf("%s",*(a+i));
}
for(i=0;i<5;i++)
printf("the char is:%s\n",a[i]);
}
void main ()
{
char *a[5];
char b[5][50];
int i;
printf("please input char:\n");
for (i=0; i<5; i++)
{
*(a+i) = b[i];
scanf("%s",*(a+i));
}
for(i=0;i<5;i++)
printf("the char is:%s\n",a[i]);
}
天道酬勤