试题通
试题通
APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
试题通
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
7.设有char a='0'; int b;,执行语句b=a+2;后,正确的描述是______。

A、  b的值变为字符型

B、  C语言不允许字符型和整型相加

C、  b的值是2

D、  b的值是字符'0'的ASCII码值加上2

答案:D

试题通
c语言冲就完事了家人们
试题通
21.说明语句“int ( )();”的含义是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-f1a0-c044-ce3414c8e900.html
点击查看题目
21.若有int m=5,n,*p1=&m,*p2=&n;,能将5赋值给n的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9f50-c044-ce3414c8e900.html
点击查看题目
23.下列程序输出的结果为______。
#include
#define M( ) x*(x+1)
void main( )
{
int a=2,b=3;
printf(
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-fb40-c044-ce3414c8e900.html
点击查看题目
18.已知主调函数中有以下定义及声明:
int a=1,b=2;float fun( );
则在主调函数中可以正确调用此函数的语句是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e9d0-c044-ce3414c8e901.html
点击查看题目
14.执行以下程序段后,输出的结果是______。
int i=10;
while(1)
{
i++;
if(i%2==0) break;
}
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3fc0-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( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-da30-c044-ce3414c8e902.html
点击查看题目
2.以下关于常量的说法中正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-ca90-c044-ce3414c8e900.html
点击查看题目
9.以下程序段输出结果是______。
int x=0x41;
printf("%c",x+1);
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-da30-c044-ce3414c8e900.html
点击查看题目
8.已知int x=1,y=2,z=3;,则下列表达式值为0的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e900.html
点击查看题目
4.表达式 ( )( )9/2)-9%2的值是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-d430-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
试题通
c语言冲就完事了家人们

7.设有char a='0'; int b;,执行语句b=a+2;后,正确的描述是______。

A、  b的值变为字符型

B、  C语言不允许字符型和整型相加

C、  b的值是2

D、  b的值是字符'0'的ASCII码值加上2

答案:D

试题通
试题通
c语言冲就完事了家人们
相关题目
21.说明语句“int ( )();”的含义是______。

A.   p是一个指向一维数组的指针变量

B.   p是一个指向整型内存单元的的指针变量

C.   p是一个指向函数的指针,该函数的返回值是一个整数

D.   p是函数名,该函数的返回值是一个指针

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-f1a0-c044-ce3414c8e900.html
点击查看答案
21.若有int m=5,n,*p1=&m,*p2=&n;,能将5赋值给n的是______。

A.   p2=*p1;

B.   *p1=*p2;

C.   p2=p1;

D.   *p2=*p1;

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9f50-c044-ce3414c8e900.html
点击查看答案
23.下列程序输出的结果为______。
#include
#define M( ) x*(x+1)
void main( )
{
int a=2,b=3;
printf(

A.   17

B.   20

C.   25

D.   30

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-fb40-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
点击查看答案
14.执行以下程序段后,输出的结果是______。
int i=10;
while(1)
{
i++;
if(i%2==0) break;
}
printf( );

A.   10

B.   11

C.   12

D.   13

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3fc0-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
点击查看答案
2.以下关于常量的说法中正确的是______。

A.   0101是二进制形式的常量

B.   0101是八进制形式的常量

C.   0101是十六进制形式的常量

D.   0101是十进制形式的常量

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-ca90-c044-ce3414c8e900.html
点击查看答案
9.以下程序段输出结果是______。
int x=0x41;
printf("%c",x+1);

A.   A

B.   a

C.   B

D.   c

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-da30-c044-ce3414c8e900.html
点击查看答案
8.已知int x=1,y=2,z=3;,则下列表达式值为0的是______。

A.   x&&y

B.   x<=y

C.   x||y

D.   x<=y-z

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-83f8-c044-ce3414c8e900.html
点击查看答案
4.表达式 ( )( )9/2)-9%2的值是______。

A.   5

B.   4

C.   0

D.   3

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