为什么不对
#include<stdio.h>
char *fun (char *s, char *t)
{
int m=0,n=0;
char*p=s,*q=t;
while(*p)
{
m++;
p++;
}
while(*q)
{
n++;
q++;
}
if(m>n)
p=s;
else
p=t;
}
int main()
{
char a[20],b[20];
a="beijing",b="shanghai";
printf("%s\n",fun(a,b));
}