35.以下函数返回a所指数组中最小的值所在的下标值
A. i=p
B. a[p]=a[i]
C. p=j
D. p=I
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-070c-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
点击查看答案
15.字符串”\\\”ABC\”\\”的长度是( )
解析:这道题考察的是字符串的长度计算。在计算字符串长度时,我们需要注意转义字符的影响。在这道题中,字符串是”\\\”ABC\”\\”,我们来分析一下:
- 第一个字符是\,它是一个转义字符,表示后面的字符具有特殊意义,所以并不算作一个普通字符。
- 接着是三个\,它们实际上只表示一个\,因为第一个\是转义字符。
- 然后是ABC三个字符,它们分别占据三个位置。
- 最后是两个\,同样只表示一个\。
所以,整个字符串的长度是1(第一个\)+3(ABC三个字符)+1(最后一个\)= 5。所以答案是C:5。
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-5b45-c0f8-9874dcef4300.html
点击查看答案
4.以下不能正确赋值的是
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/07ef798bddb949988de46abc4a92d879.png)
( )。
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-c7b5-c0f8-9874dcef4300.html
点击查看答案
28.以下程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/bba2d979f7b344988f9d1bc3e815c706.png)
的输出结果是
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-f90d-c0f8-9874dcef4300.html
点击查看答案
3.C语言的程序一行写不下时,可以( )
A. 用逗号换行
B. 用分号换行
C. 在任意一空格处换行
D. 用回车符换行
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-4102-c0f8-9874dcef4300.html
点击查看答案
16.若x,i,j和k都是int型变量,则计算表达式x=【i=4,j=16,k=32】后,x的值为( )
https://www.shititong.cn/cha-kan/shiti/00008112-f312-ffb4-c0f8-9874dcef4300.html
点击查看答案
27.已知各变量的类型说明如下:
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/0000810a0d0a2d44c0f89874dcef4300.png)
( )
A. x%(-3)
B. w+=-2
C. k=(a=2,b=3,a+B)
D. a+=a-=(b=4)*(a=3)
https://www.shititong.cn/cha-kan/shiti/00008112-f313-172d-c0f8-9874dcef4300.html
点击查看答案
10.以下所列的各函数首部中,正确的是( )
A. void play(vata:Integer,varb:Integer)
B. void play(inta,b)
C. void play(inta,intb)
D. Sub play(aasinteger,basinteger)
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-c4e6-c0f8-9874dcef4300.html
点击查看答案
33.以下定义
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/4d1d8f045cec481da24f26ada3835423.png)
中,标识符prt
A. 定义不含法
B. 是一个指针数组名,每个元素都是一个指向整数变量的指针
C. 是一个指针,它指向一个具有三个元素的一维数组
D. 是一个指向整型变量的指针
https://www.shititong.cn/cha-kan/shiti/00008150-0e26-0334-c0f8-9874dcef4300.html
点击查看答案