#include
The main ()
{
int j;
Char st, q;
Gets (st);
Puts (st);
}
Char del (char s [40])
{
int i;
for(i=0; i<40; I++)
{
[I] if (s==")
S=s [I] [I + 1);
}
}
CodePudding user response:
Modified as follows, for your reference:# include
#include
Int main (int arg c, char * argv [])
{
Void del (char s [40]);//function declaration
int j;
Char st [40], q;//char st, q;
Gets (st);
Del (st);//function call
Puts (st);
return 0;
}
Void del (char s [40])
{
int i,j;
For (I=j=0; i<40; I++ j++)
{
While (s [j]==' ') j++;//if (s [I]==' ')
S [j] [I]=s;
}
}
CodePudding user response: