修改过的程序如下:#includevoid main(){ char a[100],*p,M(); gets(a); M(a);}char M(char *p){ int n=0; while((*p)!='\0') { printf("%c",*p); p=p+2; }}