2.C语言程序从( )开始执行。
A. 程序中第一条可执行语句
B. 程序中第一个函数
C. 程序中的main函数
D. 包含文件中的第一个函数
https://www.shititong.cn/cha-kan/shiti/00008160-060e-d6fa-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
点击查看答案
1.若m为float型变量,则执行以下
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/0000810a0d1343b0c0f89874dcef4300.png)
语句后的输出为( )。
https://www.shititong.cn/cha-kan/shiti/00008112-f312-c6bc-c0f8-9874dcef4300.html
点击查看答案
16.下列程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/80e7506dfa4940cfae0aed909faf9089.png)
执行后的输出结果是
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-e0b0-c0f8-9874dcef4300.html
点击查看答案
30.以下不正确的定义语句是
A. doublex[5]={2.0,4.0,6.0,8.0,10.0};
B. inty[5.3]={0,1,3,5,7,9};
C. charc1[]={′1′,′2′,′3′,′4′,′5′};
D. charc2[]={′\x10′,′\xa′,′\x8′};
https://www.shititong.cn/cha-kan/shiti/00008150-0e25-fd1c-c0f8-9874dcef4300.html
点击查看答案
10.在C语言中,字符型数据在内存中以()形式存放( )
A. 原码
B. BCD码
C. 反码
D. ASCII码
https://www.shititong.cn/cha-kan/shiti/00008106-48c2-5003-c0f8-9874dcef4300.html
点击查看答案
28.以下对C语言函数的有关描述中,正确的是( )
A. 在C语言中调用函数时,只能把实参的值传给形参,形参的值不能传送给实参
B. C函数既可以嵌套定义又可以递归调用
C. 函数必须有返回值,否则不能使用函数
D. 函数必须有返回值,返回值类型不定`
https://www.shititong.cn/cha-kan/shiti/00008158-0ae4-ebe3-c0f8-9874dcef4300.html
点击查看答案
11.以下程序段的描述
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/000081357b090ce4c0f89874dcef4300.png)
,正确的是( )
A. 是死循环
B. 循环执行两次
C. 循环执行一次
D. 有语法错误
https://www.shititong.cn/cha-kan/shiti/0000813e-e8f3-2862-c0f8-9874dcef4300.html
点击查看答案
28.下列程序
![](https://yi2.oss-cn-shenzhen.aliyuncs.com/000081159218a6b4c0f89874dcef4300.png)
的运行结果是( )
https://www.shititong.cn/cha-kan/shiti/00008132-6116-3d03-c0f8-9874dcef4300.html
点击查看答案
31.下列数据中属于”字符串常量”的是( )。
A. ”a”
B. {ABC}
C. ‘abc\0’
D. ‘a’
解析:解析:若干个字符构成字符串在C语言中,用单引号标识字符;用双引号标识字符串选项B,C,分别用{}和’’标识字符串选项D,标识字符。
https://www.shititong.cn/cha-kan/shiti/00008160-060f-19e4-c0f8-9874dcef4300.html
点击查看答案