void delchar(char s[], char ch)
{
char *pre = s;
char *aft = s;
while ( *aft )
{
if ( *aft != ch) {
*pre = *aft;
++pre;
++aft;
} else {
++aft;
}
}
*pre = '\0';
puts(s);
}
void delchar(char s[], char ch)
{
char *a = s;
for(; *s != '\0'; s++)
{
if(*s != ch)
*a++ = *s;
a = '\0';
}
puts(s);
}