8.设有int a=3,b=4;,以下不合法的C语言语句是______。
A. a=b==4;
B. a=b%3.5;
C. a=b=4;
D. a+=a+3;
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3408-c044-ce3414c8e900.html
点击查看答案
19函数的形式参数的作用域是______。
A. 本函数的全部范围
B. 本程序的全部范围
C. 本文件的全部范围
D. 从定义开始至本文件结束
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4790-c044-ce3414c8e900.html
点击查看答案
3.按照C语言规定的用户标识符命名规则,不能出现在标识符中的是______。
A. 大写字母
B. 下划线
C. 数字字符
D. 连接符
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2638-c044-ce3414c8e900.html
点击查看答案
11.执行以下程序段后,输出的结果是______。
int x=2,y=0;
switch( )
{
case 2: x++;y=x+1;
case 1: y=y+1;break;
default:x++;y=y+1;
}
printf( );
A. 3,5
B. 3,4
C. 2,0
D. 3,1
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-da30-c044-ce3414c8e902.html
点击查看答案
16.以下对二维数组b的定义,正确的是______。
A. int b[3..4];
B. int b(3,4);
C. int b[3][4];
D. int b(3..4);
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9998-c044-ce3414c8e900.html
点击查看答案
4.设有定义:int k=0;,以下选项的四个表达式中,与其他三个表达式的值不相同的是______。
A. ++k
B. k++
C. k+1
D. k+=1
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2638-c044-ce3414c8e901.html
点击查看答案
4.表达式 ( )( )9/2)-9%2的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d430-c044-ce3414c8e900.html
点击查看答案
23.执行以下程序后,输出结果是______。
#include
#define S( ) ( )*( )
void main( )
{
int a=8,b=9;
printf(
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-a338-c044-ce3414c8e900.html
点击查看答案
14.执行以下程序段后,输出的结果是______。
int x=1;
while(1)
{
if(x==6) break;
x++;
}
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e200-c044-ce3414c8e901.html
点击查看答案
10.执行以下程序段后,输出结果是______。
int x=3,y=10;
if (x=1) y=x;
y=y+1;
printf( );
A. 3,11
B. 3,10
C. 3,4
D. 1,2
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e902.html
点击查看答案