2、按照C语言规定的用户标识符命名规则,不能出现在标识符中的是( )。
A. 大写字母
B. 下划线
C. 数字字符
D. 连接符
https://www.shititong.cn/cha-kan/shiti/000a216b-cd69-e549-c0da-acf9fe32f600.html
点击查看答案
25、已知字母A的ASCII码为十进制数65,且c2为字符型,则执行语句c2=’A’+’6’-‘3’;后,c2中的值为()。
A. A. D
B. B. 68
C. C. C
D. D. 不确定的值
https://www.shititong.cn/cha-kan/shiti/000d7793-edb7-d36b-c01a-2cf5d6189000.html
点击查看答案
39、以下对二维数组a进行不正确初始化的是( )。
A. int a[][3]={3,2,1,1,2,3};
B. int a[][3]={{3,2,1},{1,2,3};
C. int a[2][3]={{3,2,1},{1,2,3}};
D. int a[][]={{3,2,1},{1,2,3}};
https://www.shititong.cn/cha-kan/shiti/000d7793-edb7-f024-c01a-2cf5d6189000.html
点击查看答案
1、一个C语言程序总是从( )开始执行。
A. 主程序
B. 子程序
C. 主函数
D. 函数
https://www.shititong.cn/cha-kan/shiti/000d7793-edb7-924f-c01a-2cf5d6189000.html
点击查看答案
91、若有说明:int a[] [3]={ {1,2, 3}, {4,5}, {6,7}};则数组 a的第一维的大小为:( )
https://www.shititong.cn/cha-kan/shiti/000a216b-cd6a-e2c0-c0da-acf9fe32f600.html
点击查看答案
101、下列四组选项中,正确的C语言标识符是( ) C 。
A. %x
B. a+b
C. a123
D. 123
https://www.shititong.cn/cha-kan/shiti/000a216b-cd6a-fb91-c0da-acf9fe32f600.html
点击查看答案
49、一个变量的指针就是( )。
A. 变量的地址
B. 变量的值
C. 变量的名称
D. 变量的类型
https://www.shititong.cn/cha-kan/shiti/000a216b-cd6a-6de8-c0da-acf9fe32f600.html
点击查看答案
28、若变量 c 为 char 类型,能正确判断出 c 为小写字母的表达式是( )。
A. 'a'<=c<= 'z'
B. (c>= 'a')||(c<= 'z')
C. ('a'=c)
D. (c>= 'a')&&(c<= 'z')
https://www.shititong.cn/cha-kan/shiti/000d7793-edb7-d989-c01a-2cf5d6189000.html
点击查看答案
83、有以下程序main( ){ int i,s=0;for(i=1;i<10;i+=2) s+=i+1;printf(“%d\ n”,s);}程序执行后的输出结果是 ( )。
A. 自然数 1~9 的累加和
B. 自然数 1~10 的累加和
C. 自然数 1~9 中的奇数之和
D. 自然数 1~10 中的偶数之和
https://www.shititong.cn/cha-kan/shiti/000a216b-cd6a-cd3f-c0da-acf9fe32f600.html
点击查看答案
69、定义:char s[20]="China" ,则printf("length=%d\n",strlen(s));的输出是:( )
A. length=20
B. length=6
C. length=5
D. length=19
https://www.shititong.cn/cha-kan/shiti/000a216b-cd6a-a83f-c0da-acf9fe32f600.html
点击查看答案