6.若有定义doublex=1,y;则以下的语句执行的结果是( )。y=x+3/2;printf(“%f”,y);
A. 2.500000
B. 2.5
C. 2.000000
D. 2
https://www.shititong.cn/cha-kan/shiti/00008112-f312-e8ef-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
点击查看答案
40.已有如下数组定义
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/d2baf0b8cee34f9888f447336ba8ec4c.png)
和f函数调用语句,则在f函数的说明中,对形参数组array的正确定义方式为
A. f(array[3][4])
B. f(intarray[3][])
C. f(intarray[][4])
D. f(intarray[][])
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-11c6-c0f8-9874dcef4300.html
点击查看答案
27.下列函数
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/00008152ffaf0175c0f89874dcef4300.png)
的运行结果是( )
A. -1
B. 1
C. 2
D. 编译出错,无法运行
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-e867-c0f8-9874dcef4300.html
点击查看答案
46.在C语言中,一维数组的定义方法为类型说明符数组名
A. [常量表达式]
B. [整型常量]
C. [整型变量]
D. [整型常量]或[整型表达式]
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-1e12-c0f8-9874dcef4300.html
点击查看答案
24.下列选项中不是结构化程序基本结构的是( )
A. 顺序结构
B. 跳转分支结构
C. 选择结构
D. 循环结构
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-7c0a-c0f8-9874dcef4300.html
点击查看答案
18.执行下面的程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/6c03c7250506492d9ed472df7eaafe49.png)
段后,变量k中的值为
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-e4fd-c0f8-9874dcef4300.html
点击查看答案
28.以下对C语言函数的有关描述中,正确的是( )
A. 在C语言中调用函数时,只能把实参的值传给形参,形参的值不能传送给实参
B. C函数既可以嵌套定义又可以递归调用
C. 函数必须有返回值,否则不能使用函数
D. 函数必须有返回值,返回值类型不定`
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-ebe3-c0f8-9874dcef4300.html
点击查看答案
15.有以下程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/00008152ffb87519c0f89874dcef4300.png)
( )
A. 编译出错
B. 9
C. 21
D. 9.0
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-cfa5-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
点击查看答案