求大神帮忙看一下为什么结果运行不出来
#include <math.h>
#include <string.h>
void fun(char (*a)[81],int num,char **max)
{
int n=strlen(a[0]),i;
for(i=1;i<num;i++)
{
if(strlen(a[i])>n)
{
n=strlen(a[i]);
}
}
*max=a[i];
}
int main()
{
char ss[10][81]={"ABCD","A","BC"},*ps;
int n,i=0;
while(!strcmp (ss[i],"****")==0)
{
i++;
puts(ss[i]);
}
n=i;
fun(ss,n,&ps);
printf("\nmax=%s\n",ps);
return 0;
}