C语言编程题目?

2024-11-26 07:45:22
推荐回答(1个)
回答1:

void delStr(char st[],char *p,int m){
scanf("%s \n %d",st,&m);
int i = 0;
p =st +m;
while(*p != '\0'){
st[i++]=*p++;
}
st[i] ='\0';
}