6.已知int x=6,y=4,z=5;,执行语句y=z,z=x,x=y;后,变量x的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8228-c044-ce3414c8e901.html
点击查看答案
12.设n为整型变量,执行语句for(n=1;n++<4;);后,变量n的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8de0-c044-ce3414c8e901.html
点击查看答案
23.设有预处理命令
#define d 2
和定义
int a=10;
long b=20;
char c='a';
则下列语句中错误的是_______。
A. a++;
B. b++;
C. c++;
D. d++;
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4f60-c044-ce3414c8e900.html
点击查看答案
6.逗号表达式“(a=3*5,a*4),a+15”的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-8010-c044-ce3414c8e900.html
点击查看答案
3.下面用户标识符中合法的是______。
A. iPhone#
B. 13a
C. char
D. _int
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2850-c044-ce3414c8e902.html
点击查看答案
20.执行以下程序后,输出结果是______。
#include
void fun( )
{
c=a*b;
}
void main()
{
int c=4;
fun(2,3,c);
printf( );
}
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9b68-c044-ce3414c8e900.html
点击查看答案
12.若i为整型变量,则下列循环体执行次数是______。
for(i=2;i==0;) printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3bd8-c044-ce3414c8e900.html
点击查看答案
89,85,83,83,70,79,81,62,76,79,66,85,89,89,72};
/*考生在此行下设计程序,不得删除本行*/
int sum=0,i;
double aver;
for( )
sum+=a[i];
aver=1.0*sum/30;
printf( );
}
第三套
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-7670-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
点击查看答案
9.有定义:float x=3.345;,执行语句printf("%.2f\n",x);后,屏幕输出结果是______。
A. 3.345
B. 3.345000
C. 3.34
D. 3.35
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e901.html
点击查看答案