网课答案 | 资源分享
  • 首页
  • 最新收录
  • 微信公众号对接
  • 微信小程序对接
  • 联系站长
登录/注册
网课答案LOGO
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
关注微信公众号《课帮忙》查题
  • 公告:维护QQ群:833371870,欢迎加入!
  • 公告:维护QQ群:833371870,欢迎加入!
  • 公告:维护QQ群:833371870,欢迎加入!
  • 2021-04-14
    下面程序的运行结果是

    #include
    int main()
    {
    int a[]= {2,3,5,4},i;
    for(i=0; i<4; i++)
    switch(i%2)
    {
    case 0:
    switch(a[i]%2)
    {
    case 0:
    a[i]++;
    break;
    case 1:
    a[i]--;
    }
    break;
    }
    for(i=0; i<4; i++)
    printf("%2d",a[i]);
    printf("\n");
    return 0;
    }
  • 查看

    公众号

    广告招租

    举一反三

    • 下列程序的输出结果是()。int main(){int a=0,b=0,c=0,i;for(i=0;i<;4;i++){switch(i){case 0:a=++i;case 1:b=i++;case 2:c=--i;case 3:i--;}}printf("%d,%d,%d,%d\n",a,b,c,i);return 0;} A: 1,1,1,5 B: 1,2,3,4 C: 0,0,0,50 D: 死循环
    • 以下程序的输出结果是 main() { int a=0,i; for(i=1;i < 5;i++) { switch(i) { case 0: case 3:a+=2; case 1: case 2:a+=3; default:a+=5; } } printf("%d\n",a); }
    • 中国大学MOOC: 有以下程序#include <stdio.h>main(){ int i; for(i=0;i<3;i++)switch(i){ case 1:printf("%d",i); case 2:printf("%d",i); default:printf("%d",i);}}执行后输出结果是( )。
    • 中国大学MOOC: 以下代码片段的输出是:int j=4;for ( int i=j; i<=2*j; i++ ) { switch ( i/j ) { case 0: case 1: printf(“*”); break; case 2: printf(“#”); }}
    • 以下程序段的输出结果是: ( ) int a=0, i; for (i=1; i<5; i++) { switch(i) { case 0: case 3: a += 2; case 1: case 2: a += 3; default: a += 5; } }

    热门题目

    • We arrived home safe and [color=#ff3853]sound[/color]. A: adj. 好的;健康的 B: adj. 习惯于;用过的;旧的 C: adj. 基本的;根本的 未知类型:{'label': 'source', 'content': '牛津词典', 'isMemberControl': 0, 'type': 181}
    • 大部分《西厢记》是一共有()折。
    • 遥感影像判读的特征不包括以下哪一项() A: 形状 B: 色调 C: 清晰度 D: 纹理图案
    • 现代舞是在经济时间和政治时间中用意识时间直接和艺术挂钩
    • 职业领域的多样性决定了职业道德表现形式的多样性。()
    • 中国大学MOOC: 资金来源主要是天使投资和各类风险投资基金,性质多数属于权益资金的企业为( )。
    • 中国大学MOOC:"场效应管用于放大时,应工作在( )区。(填写恒流/可变电阻/夹断)";
    • 打领带最好的长度是皮带扣上沿。
    • 在实际应用中,一旦纠正了程序中的错误后,还应该选择部分或全部原先已测试过的测试用例,对修改后的程序重新测试,这种测试称为()。 A: 验收测试 B: 强度测试 C: 系统测试 D: 回归测试
    • (10义乌10)下列反应中,属于置换反应的是(  )

    相关标签

      include stdio break 结果 for i++ main 程序 运行 int 结果是 switch printf stdio.h 2d 2,3,5,4 下面 case return

    查题对接

    • 微信查题

    站点信息

    • 统计数据:百度统计
    • 交换友链:QQ联系
    • 微信公众号:扫描二维码,关注我们
    友情链接:
    • 网课答案
    • 换友链点击联系

    Copyright © 2018-2023 网课答案 All Rights Reserved.  冀ICP备19017793号版权与免责声明