APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
8.已知int x=1,y=2,z=3;,则下列表达式值为0的是______。

A、  x&&y

B、  x<=y

C、  x||y

D、  x<=y-z

答案:D

c语言冲就完事了家人们
16.设有int a[6][6];,则存储在a[4][4]之前的元素个数为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-eba0-c044-ce3414c8e901.html
点击查看题目
10.下列程序段输出的结果是______。
int a=5,b=4,c=3;
if( ) a=b+c,b=2*c;
else a=b-c,b=3*c;a=b+c;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-37f0-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
点击查看题目
12.执行下列程序后,输出的结果是______。
#include
void main( )
{
int i,s=0;
for(i=1;i<10;i+=2)
s+=i+1;
printf( );
}
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e3d0-c044-ce3414c8e900.html
点击查看题目
13.执行以下程序段后,输出的结果是______。
int n=0,s=0;
while(s<10)
{ n++;s+=n; }
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e3d0-c044-ce3414c8e901.html
点击查看题目
4.设有定义:int i=3480;,下列选项中,取i的十位上数字的表达式是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7c28-c044-ce3414c8e900.html
点击查看题目
3.下列定义变量的语句中错误的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d048-c044-ce3414c8e902.html
点击查看题目
15.以下选项中关于数组定义和初始化,正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3fc0-c044-ce3414c8e901.html
点击查看题目
22.有以下程序段:
int a[10]={1,2,3,4,5,6,7,8,9,10};
int *p=&a[3],b=p[5];
b的值是____。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4960-c044-ce3414c8e901.html
点击查看题目
5.设有定义:int x=2;,以下表达式中,值不为6的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2a20-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
c语言冲就完事了家人们

8.已知int x=1,y=2,z=3;,则下列表达式值为0的是______。

A、  x&&y

B、  x<=y

C、  x||y

D、  x<=y-z

答案:D

c语言冲就完事了家人们
相关题目
16.设有int a[6][6];,则存储在a[4][4]之前的元素个数为______。

A.   38

B.   29

C.   28

D.   30

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-eba0-c044-ce3414c8e901.html
点击查看答案
10.下列程序段输出的结果是______。
int a=5,b=4,c=3;
if( ) a=b+c,b=2*c;
else a=b-c,b=3*c;a=b+c;
printf( );

A.   9 6

B.   7 3

C.   1 9

D.   4 2

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-37f0-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
点击查看答案
12.执行下列程序后,输出的结果是______。
#include
void main( )
{
int i,s=0;
for(i=1;i<10;i+=2)
s+=i+1;
printf( );
}

A.   s=30

B.   s=25

C.   s=55

D.   s=45

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e3d0-c044-ce3414c8e900.html
点击查看答案
13.执行以下程序段后,输出的结果是______。
int n=0,s=0;
while(s<10)
{ n++;s+=n; }
printf( );

A.   0,0

B.   4,10

C.   5,15

D.   10,4

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e3d0-c044-ce3414c8e901.html
点击查看答案
4.设有定义:int i=3480;,下列选项中,取i的十位上数字的表达式是______。

A.   i/10

B.   i%10

C.   i/10%10

D.   i/100%10

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7c28-c044-ce3414c8e900.html
点击查看答案
3.下列定义变量的语句中错误的是______。

A.   int _abc;

B.   double int_;

C.   char For;

D.   float US%;

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d048-c044-ce3414c8e902.html
点击查看答案
15.以下选项中关于数组定义和初始化,正确的是______。

A.   int a[5]={1,2,3,4,5};

B.   int a[5]=(1,2,3,4,5);

C.   int a[5]=0;

D.   int a[3]={1,2,3,4,5};

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3fc0-c044-ce3414c8e901.html
点击查看答案
22.有以下程序段:
int a[10]={1,2,3,4,5,6,7,8,9,10};
int *p=&a[3],b=p[5];
b的值是____。

A.   5

B.   6

C.   8

D.   9

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4960-c044-ce3414c8e901.html
点击查看答案
5.设有定义:int x=2;,以下表达式中,值不为6的是______。

A.   x*=x+1

B.   x++,2*x

C.   x*=(1+x)

D.   2*x,x+=2

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2a20-c044-ce3414c8e900.html
点击查看答案
试题通小程序
试题通app下载