logo
YourData+
玉东数据
首页专升本教学质量博客AI工具
程序阅读
[程序阅读]

当输入“I miss you!”并按回车键,以下程序输出结果为:(  )。

#include<stdio.h>
void dchar(char str[],char c)
{
    int i,j;
    for(i = 0,j = 0;str[i] != '\0';i++)
    {
        if(str[i] != c)
            str[j++] = str[i];
    }
    str[j] = '\0';
}
int main(  )
{
    char str[80];
    gets(str);
    dchar(str,'s');
    puts(str);
    return 0;
}
答案:
解析:

Copyright ©

YourData+2026.甘肃玉东数据有限公司
应用合作解决方案MUI-Remix
18919890888微信同号
陇ICP备2021001826号