27.当k的值不为0时,在下列选项中能够将k的值赋给变量m,n的是( )
A. m=k=n
B. (m=k)&&(n=k)
C. (m=k)||(n=k)
D. (k=m)&&(n=k)
https://www.shititong.cn/cha-kan/shiti/00008132-6116-3ad8-c0f8-9874dcef4300.html
点击查看答案
14.下面程序的运行结果是
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/000081357b0afbe7c0f89874dcef4300.png)
( )
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-3640-c0f8-9874dcef4300.html
点击查看答案
25.以下正确的函数头定义形式是( )
A. double fun(intx,inty)
B. double fun(intx;inty)
C. double fun(intx,inty);
D. double fun(intx,y);
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-e416-c0f8-9874dcef4300.html
点击查看答案
19.设有程序段
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/000081357b0dec06c0f89874dcef4300.png)
则下面描述中正确的是( )
A. while循环执行10次
B. 循环是无限循环
C. 循环体语句一次也不执行
D. 循环体语句执行一次
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-426e-c0f8-9874dcef4300.html
点击查看答案
22.以下程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/00008152ffada9b0c0f89874dcef4300.png)
有语法错误,有关错误原因的正确说法是( )
A. 语句voidprtⱣⱤchar();有错,它是函数调用语句,不能用void说明
B. 变量名不能使用大写字母
C. 函数说明和函数调用语句之间有矛盾
D. 函数名不能使用下划线
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-dd7c-c0f8-9874dcef4300.html
点击查看答案
43.若有说明:inta[10];则对a数组元素的正确引用是
A. a[10]
B. a[3,5]
C. a(5)
D. a[10-10]
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-17ce-c0f8-9874dcef4300.html
点击查看答案
24.有如下程序
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-f0d4-c0f8-9874dcef4300.html
点击查看答案
18.以下正确的说法是( )
A. 定义函数时,形参的类型说明可以放在函数体内
B. return后边的值不能为表达式
C. 如果函数值的类型与返回值类型不一致,以函数值类型为准
D. 如果形参与实参类型不一致,以实参类型为准
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-d56b-c0f8-9874dcef4300.html
点击查看答案
19.以下函数
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/8092a42e60124a56ad9c710cdbd2a5b6.png)
返回a所指数组中最大值所在的下标值在下划线处应填入的内容是
A. i=p
B. a[p]=a[i]
C. p=j
D. p=I
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-e68c-c0f8-9874dcef4300.html
点击查看答案
15.以下代码选项错误的是
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/0000810a0d174812c0f89874dcef4300.png)
( )
https://www.shititong.cn/cha-kan/shiti/00008112-f312-fce1-c0f8-9874dcef4300.html
点击查看答案