#include
#include
#include
void fun (char *s, char *t)
{
int i, d;
//
t[【?】] =' ';填:t[2*d]=' ',为数组t在最后的一个元素后面附加一个结束符
}
main()
{
char s[100], t[100];
printf("nPlease enter string S:"); scanf("%s", s);
fun(s, t);
printf("nThe result is: %sn", t);
}
#include
#include
#include
void fun (char *s, char *t)
{
int i, d;
//
t[【?】] =' ';填:t[2*d]=' ',为数组t在最后的一个元素后面附加一个结束符
}
main()
{
char s[100], t[100];
printf("nPlease enter string S:"); scanf("%s", s);
fun(s, t);
printf("nThe result is: %sn", t);
}