42.下列程序的输出结果是
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/0000810a0d0dae6dc0f89874dcef4300.png)
( )
https://www.shititong.cn/cha-kan/shiti/00008112-f313-35c4-c0f8-9874dcef4300.html
点击查看答案
43.以下程序段的输出结果是
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/0000810a0d0e53bbc0f89874dcef4300.png)
( )
A. 12
B. 34
C. 1234
D. 提示出错、无结果
https://www.shititong.cn/cha-kan/shiti/00008112-f313-3798-c0f8-9874dcef4300.html
点击查看答案
44.已有定义inta=-2;和输出语句printf(”%8lx”,a);以下正确的叙述是( )
A. 整型变量的输出形式只有%d一种
B. %x是格式符的一种,它可以适用于任何一种类型的数据
C. %x是格式符的一种,其变量的值按十六进制输出,但%8lx是错误的
D. %8lx不是错误的格式符,其中数字8规定了输出字段的宽度
https://www.shititong.cn/cha-kan/shiti/00008112-f313-3968-c0f8-9874dcef4300.html
点击查看答案
52.下列程序运行的结果是
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/0000810a0d11223dc0f89874dcef4300.png)
( )
A. x=3.600000,i=3
B. x=3.6,i=3
C. x=3,i=3
D. x=3.600000,i=3.000000
https://www.shititong.cn/cha-kan/shiti/00008112-f313-4be0-c0f8-9874dcef4300.html
点击查看答案
1.( )是构成C语言程序的基本单位。
A. 函数
B. 过程
C. 子程序
D. 子例程
https://www.shititong.cn/cha-kan/shiti/00008160-060e-9766-c0f8-9874dcef4300.html
点击查看答案
30.以下不正确的定义语句是
A. doublex[5]={2.0,4.0,6.0,8.0,10.0};
B. inty[5.3]={0,1,3,5,7,9};
C. charc1[]={′1′,′2′,′3′,′4′,′5′};
D. charc2[]={′\x10′,′\xa′,′\x8′};
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-fd1c-c0f8-9874dcef4300.html
点击查看答案
32.下列程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/5233e170f7444a29a293143fae073ec7.png)
的输出结果是
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-0137-c0f8-9874dcef4300.html
点击查看答案
21.C语言允许函数类型缺省定义,此时函数值隐含的类型是( )
A. float
B. int
C. long
D. double
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-dbd5-c0f8-9874dcef4300.html
点击查看答案
45.以下程序的输出结果是
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/0000810a0d0eebc5c0f89874dcef4300.png)
( )
https://www.shititong.cn/cha-kan/shiti/00008112-f313-3b2d-c0f8-9874dcef4300.html
点击查看答案
2.一个C语言程序总是从()开始执行。
A. 主过程
B. 主函数
C. 子程序
D. 主程序
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-3e37-c0f8-9874dcef4300.html
点击查看答案