/*编写函数fun,函数fun的功能:将s所指字符串中ASCII值为奇数的字符删除,
串中剩余字符形成一个新串放在t所指的数组中
例如:s所指字符串为“ABCDEFG12345”,其中A的ASCII值为奇数,应该删除,以此类推,最后
t所指的数组的内容为“BDF24”*/
#include <stdio.h>
void fun(int *s,char t[])
{
int i=0;
while(*s!='0')
{
if(*s%2==0)
{
t[i++]=*s;
}
s++;
}
t[i]='\0';
}