求高手帮着看一下,为什么结果出现两个一抹一样的字符串
#include <stdio.h>
void fun ( char *a )
{
int i=0,k;
while(a[i]=='*') i++;
k=i;
while(a[i]!='\0')
{
if(a[i]!='*');
a[k++]=a[i];
i++;
}
a[k]='\0';
}
int main()
{
char s[81]="****A*BC*DEF*G*********",*t;
printf("The original string:\n");
puts(s);
fun( s );
printf("The string after deleted:\n");
puts(s);
}