这是显示读取的字符串的显示函数。
void print(char **s,int T)
{
while(*s)
{
printf("i: String : %s\n",*s++);
}
}
int main()
{
int T =0,i=0;
char ** s, *c;
printf("Enter number of Testcases:\n");
scanf("%d",&T);
s = (char **)malloc(T*sizeof(char *));
printf("Size allocated : %lu\n",sizeof(s));
while(i++ < T)
{
s= (char *)malloc(10000*sizeof(char));
scanf("%s",*s++);
}
print(s,T);
return 0;
}