试题通
试题通
APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
试题通
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
5.设有定义:int x=2;,以下表达式中,值不为6的是______。

A、  x*=x+1

B、  x++,2*x

C、  x*=(1+x)

D、  2*x,x+=2

答案:D

试题通
c语言冲就完事了家人们
试题通
4.设有定义:int k=0;,以下选项的四个表达式中,与其他三个表达式的值不相同的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2638-c044-ce3414c8e901.html
点击查看题目
11.设有int x=1,y=2,z;,则表达式z=x>y?x+y:x-y值为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8de0-c044-ce3414c8e900.html
点击查看题目
5.设有int x=7,y;,执行语句y=( )+3;后,变量x,y的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7c28-c044-ce3414c8e901.html
点击查看题目
5.设有定义:int b=0;,表达式______与其它表达式的值不相同。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8228-c044-ce3414c8e900.html
点击查看题目
18.已知主调函数中有以下定义及声明:
int a=1,b=2;float fun( );
则在主调函数中可以正确调用此函数的语句是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e9d0-c044-ce3414c8e901.html
点击查看题目
17.以下程序段的输出结果是______。
char s[]="Hello World!";
strlwr( );
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9398-c044-ce3414c8e901.html
点击查看题目
15.以下不能对一维数组a进行正确定义及初始化的语句是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-95b0-c044-ce3414c8e900.html
点击查看题目
10.下列程序段输出的结果是______。
int x=5;
if(x=4) printf( );
else printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-89f8-c044-ce3414c8e901.html
点击查看题目
10.执行以下程序段后,输出结果是______。
int x=3,y=10;
if (x=1) y=x;
y=y+1;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e902.html
点击查看题目
9.以下程序段输出结果是______。
int x=0x61;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-31f0-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
试题通
c语言冲就完事了家人们

5.设有定义:int x=2;,以下表达式中,值不为6的是______。

A、  x*=x+1

B、  x++,2*x

C、  x*=(1+x)

D、  2*x,x+=2

答案:D

试题通
试题通
c语言冲就完事了家人们
相关题目
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
点击查看答案
11.设有int x=1,y=2,z;,则表达式z=x>y?x+y:x-y值为______。

A.   1

B.   2

C.   3

D.   -1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8de0-c044-ce3414c8e900.html
点击查看答案
5.设有int x=7,y;,执行语句y=( )+3;后,变量x,y的值是______。

A.   7,10

B.   8,10

C.   7,11

D.   8,11

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7c28-c044-ce3414c8e901.html
点击查看答案
5.设有定义:int b=0;,表达式______与其它表达式的值不相同。

A.   b+=1

B.   b++

C.   ++b

D.   b+1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8228-c044-ce3414c8e900.html
点击查看答案
18.已知主调函数中有以下定义及声明:
int a=1,b=2;float fun( );
则在主调函数中可以正确调用此函数的语句是______。

A.   fun(a);

B.   fun(a,&b);

C.   fun(*a,*b);

D.   fun(&a,a+b);

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e9d0-c044-ce3414c8e901.html
点击查看答案
17.以下程序段的输出结果是______。
char s[]="Hello World!";
strlwr( );
printf( );

A.   hello world!

B.   HELLO world!

C.   hello WORLD!

D.   HELLO WORLD!

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9398-c044-ce3414c8e901.html
点击查看答案
15.以下不能对一维数组a进行正确定义及初始化的语句是______。

A.  int a[5]={ };

B.  int a[5]={1};

C.  int a[5]={1,2};

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

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-95b0-c044-ce3414c8e900.html
点击查看答案
10.下列程序段输出的结果是______。
int x=5;
if(x=4) printf( );
else printf( );

A.   TRUEFALSE

B.   FALSETRUE

C.   TRUE

D.   FALSE

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-89f8-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
点击查看答案
9.以下程序段输出结果是______。
int x=0x61;
printf( );

A.   61

B.   'a'

C.   97

D.   96

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