整专业资料
微信QQ群
考生网QQ群

群号:517231281

扫码加群
点击二维码加群

考生网微信公众号

微信号:zikaosw

课程试听
最新资讯

手机端访问

1、直接输入www.zikaosw.cn
2、扫描左侧二维码

登录 | 注册
登录/注册后,可享受
  • 课程免费试听
  • 试做在线题库
  • 学习提升指导
  • [主观题] 【程序题】有以下程序
    #include
    structstu
    {intnum;
    charname[10];
    intage;
    };
    voidfun(structstu*p)
    {printf(“%s\n”,(*p).name);}
    main()
    {structstustudents[3]={{9801,“Zhang”,20},
    {9802,“Wang”,19l},
    {9803,“Zhao”,18}};
    fun(students+2);
    }
    执行后输出的结果是___________

     纠错    

  • 助考班推荐

您可能感兴趣的试题

  • 1、[单选题]以下程序的输出结果是 【 】
    #include
    #include
    main()
    {char str[12]={‘8’,‘t’,‘r’,‘i’, ‘n’,‘g’,‘、0’,‘a’};
    printf(“%d\n”,strlen(str));}

    • A、6
    • B、7
    • C、8
    • D、12
  • 2、[单选题]在C语言中,如果下面的变量都是int类型,则输出的结果是【】
    Sum=pad=5;pAd=sum++,pAd++,++pAd:
    printf(“%d\n”,pad);

    • A、7
    • B、6
    • C、5
    • D、4
  • 3、[填空题]以下程序运行后的输出结果是_________。
    main( )
    {int a=1,b=3,c=5;
    if(c=a+b)
    printf(“yes”);
    else
    printf(“not”);
    }

  • 4、[主观题]【程序题】有以下程序:
    #include
    main()
    {intC;
    While((c=gerchar())!=‘\n’
    {case0:
    casel:putchar(c+4);
    case2:putchar(c+4);break;
    case3:putchar(c+3);
    case4:putchar(c+2);break;
    }
    printf(“\n”);}
    从第一列开始输入以下数据,代表一个回车符。
    2743
    程序的输出结果是___________

  • 5、[主观题]【程序题】编写一函数sort实现对数组中下标为奇数的元素升序排序。要求在主函数main中输人10个数据,并输出排序后的数据。
    例如:下标0 1 2 3 4 5 6 7 8 9
    输人12 8 18 2 13 1 2 20 6 4
    输出12 1 18 2 13 4 2 8 6 20

Copyright © 2010 - 2023 湖南求实创新教育科技有限公司 All Right Reserved.

温馨提示:如您需要的资料本网暂时没有,请于工作日08:00-18:00,点击这里,联系客服及时补充资料。