15.下面程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/000081357b0bb6b0c0f89874dcef4300.png)
的运行结果是( )
A. a=3,b=11
B. a=2,b=8
C. a=1,b=-1
D. a=4,b=9
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-3893-c0f8-9874dcef4300.html
点击查看答案
31.有以下语句
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/fef4c26b97c3469fb2bdebc97516a6ae.png)
,则对a数组元素的引用不正确的是(0≤i≤9)
A. a[p-a]
B. *(&a[i])
C. p[i]
D. *(*(a+i))
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-ff2f-c0f8-9874dcef4300.html
点击查看答案
27.若有以下程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/6c39cd7b384a40aba0c75ae9cca8211d.png)
上面程序输出结果是
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-f701-c0f8-9874dcef4300.html
点击查看答案
7.下列四组选项中,正确的C语言标识符是( )。
A. %x
B. a+b
C. a123
D. 123
解析:解析:选项A中的”%”,选项B中”+”不满足(1);选项D中的标识符以数字开头不满足(2)
https://www.shititong.cn/cha-kan/shiti/00008160-060e-e362-c0f8-9874dcef4300.html
点击查看答案
15.若已定义:inta=25,b=14,c=19;以下三目运算符(?:)所构成语句的执行后a<=25&&b--<=2&&c?printf(”***a=%d,b=%d,c=%d\n”,a,b,c):printf(”###a=%d,b=%d,c=%d\n”,a,b,c);程序输出的结果是( )
A. ***a=25,b=13,c=19
B. ***a=26,b=14,c=19
C. ###a=25,b=13,c=19
D. ###a=25,b=14,c=19
https://www.shititong.cn/cha-kan/shiti/00008132-6116-20f3-c0f8-9874dcef4300.html
点击查看答案
12.若变量a,i已正确定义,且i已正确赋值,合法的语句是( )
A. a==1
B. ++i;
C. a=a++=5;
D. a=int(i);
https://www.shititong.cn/cha-kan/shiti/00008112-f312-f4d7-c0f8-9874dcef4300.html
点击查看答案
10.设有以下程序段
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/000081357b086e79c0f89874dcef4300.png)
( )
A. 运行程序段后输出0
B. 运行程序段后输出1
C. 程序段中的控制表达式是非法的
D. 程序段执行无限次
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-263b-c0f8-9874dcef4300.html
点击查看答案
28.以下对C语言函数的有关描述中,正确的是( )
A. 在C语言中调用函数时,只能把实参的值传给形参,形参的值不能传送给实参
B. C函数既可以嵌套定义又可以递归调用
C. 函数必须有返回值,否则不能使用函数
D. 函数必须有返回值,返回值类型不定`
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-ebe3-c0f8-9874dcef4300.html
点击查看答案
22.定义如下变量和数组:
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/8cf326d00f174791819dfc2b82eb2bbf.png)
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-ecc4-c0f8-9874dcef4300.html
点击查看答案
7.若a为整型变量,则以下语句( )。a=-2L;printf(“%d\n”,a);
A. 赋值不合法
B. 输出为不确定的值
C. 输出值为-2
D. 输出值为2
https://www.shititong.cn/cha-kan/shiti/00008112-f312-eb3a-c0f8-9874dcef4300.html
点击查看答案