37.若有下面的程序片段:
A. pp[0][1]
B. a[10]
C. p[3][1]
D. *(*(p+2)+2)
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-0b1c-c0f8-9874dcef4300.html
点击查看答案
29.有以下程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/00008152ffaff762c0f89874dcef4300.png)
:( )
A. 30,20,10
B. 10,20,30
C. 456,567,678
D. 678,567,456
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-ee0f-c0f8-9874dcef4300.html
点击查看答案
11.如果inta=3,b=4;则条件表达式”a<b?a:b”的值是( )。
解析:解析:详见教材P97.表达式1?表达式2:表达式3先计算表达式1,若表达式1成立,则选择计算表达式2,并表达式2的值作为整个大表达式的值;若表达式1不成立,则选择计算表达式3,并将表达式3的值作为整个大表达式的值此题中的a<b相当于表达式1,a相当于表达式2,b相当于表达式3.a为3,b为4。a<b表达式1成立,因此计算表达式2,并将表达式2的值即a中的值,并作为整个表达式的值,因此整个表达式的值为3
https://www.shititong.cn/cha-kan/shiti/00008160-060e-ebd0-c0f8-9874dcef4300.html
点击查看答案
26.设有以下程序段
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/000081357b116692c0f89874dcef4300.png)
( )
A. 运行程序段后输出0
B. 运行程序段后输出1
C. 程序段中的控制表达式是非法的
D. 程序段执行无限次
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-5210-c0f8-9874dcef4300.html
点击查看答案
3.C语言的程序一行写不下时,可以( )
A. 用逗号换行
B. 用分号换行
C. 在任意一空格处换行
D. 用回车符换行
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-4102-c0f8-9874dcef4300.html
点击查看答案
22.以下叙述不正确的是( )
A. 一个C源程序可由一个或多个函数组成
B. 一个C源程序必须包含一个main函数
C. C程序的基本组成单位是函数
D. 在C程序中,注释说明只能位于一条语句的后面
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-77cf-c0f8-9874dcef4300.html
点击查看答案
42.以下不能对二维数组a进行正确初始化的语句是
A. inta[2][3]={0};
B. inta[][3]={{1,2},{0}};
C. inta[2][3]={{1,2},{3,4},{5,6}};
D. inta[][3]={1,2,3,4,5,6};
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-15d9-c0f8-9874dcef4300.html
点击查看答案
33.阅读下列程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/000081357b14200ec0f89874dcef4300.png)
,程序的输出结果是( )
A. 5.000000
B. 15.000000
C. 25.000000
D. 35.000000
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-61e4-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
点击查看答案
41.下面程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/6622aa662e7a4b1faca5684d418abe06.png)
输出的结果是
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-1401-c0f8-9874dcef4300.html
点击查看答案