APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
17.字符串"A"和字符常量'A'各占用______个字节的内存空间。

A、  1,1

B、  1,2

C、  2,1

D、  2,2

答案:C

c语言冲就完事了家人们
9.以下程序段输出结果是______。
int x=0x41;
printf("%c",x+1);
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-da30-c044-ce3414c8e900.html
点击查看题目
22.若有以下定义,则对a数组元素的非法引用是______。
int a[2][3],( )[3];pa=a;
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-f1a0-c044-ce3414c8e901.html
点击查看题目
8.下面选项中能正确表示“|x|≤21”的C语言表达式是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-dc00-c044-ce3414c8e900.html
点击查看题目
24.若有:
union keyboard
{
char key[2];
int value;
}k[104];
则下列说法中,正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-a338-c044-ce3414c8e901.html
点击查看题目
10.执行以下程序段后,输出结果是______。
int x1=1,x2=2,t=1;
if (x1=x2) t=10;
printf("%d,%d\n",x1,t);
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-31f0-c044-ce3414c8e901.html
点击查看题目
5.设有定义:int a=20,b;,则执行语句b=a++;后,a、b的值分别是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-d260-c044-ce3414c8e900.html
点击查看题目
23.设有预处理命令
#define d 2
和定义
int a=10;
long b=20;
char c='a';
则下列语句中错误的是_______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-4f60-c044-ce3414c8e900.html
点击查看题目
16.以下对二维数组b的定义,正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9998-c044-ce3414c8e900.html
点击查看题目
6.已知:int x=1,y=2,t;,则执行语句:t=x,y=x,x=t;后x、y的值分别是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-d260-c044-ce3414c8e901.html
点击查看题目
18.max函数的功能是求整型数组a中前n个元素中的最大值。下列函数声明语句中错误的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4190-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
c语言冲就完事了家人们

17.字符串"A"和字符常量'A'各占用______个字节的内存空间。

A、  1,1

B、  1,2

C、  2,1

D、  2,2

答案:C

c语言冲就完事了家人们
相关题目
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
点击查看答案
22.若有以下定义,则对a数组元素的非法引用是______。
int a[2][3],( )[3];pa=a;

A.  *(a[0]+2)

B.  *pa[2]

C.  pa[0][0]

D.  *(pa[1]+2)

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-f1a0-c044-ce3414c8e901.html
点击查看答案
8.下面选项中能正确表示“|x|≤21”的C语言表达式是______。

A.   -21≤x≤21

B.   -21<=x&&x<=21

C.   -21<=x||x<=21

D.   -21<=x<=21

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-dc00-c044-ce3414c8e900.html
点击查看答案
24.若有:
union keyboard
{
char key[2];
int value;
}k[104];
则下列说法中,正确的是______。

A.   共用体类型名是value

B.   共用体类型名是key

C.   共用体类型名是union keyboard

D.   共用体类型名是k

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-a338-c044-ce3414c8e901.html
点击查看答案
10.执行以下程序段后,输出结果是______。
int x1=1,x2=2,t=1;
if (x1=x2) t=10;
printf("%d,%d\n",x1,t);

A.   1,1

B.   1,10

C.   2,10

D.   2,1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-31f0-c044-ce3414c8e901.html
点击查看答案
5.设有定义:int a=20,b;,则执行语句b=a++;后,a、b的值分别是______。

A.   20,21

B.   21,20

C.   20,20

D.   21,21

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-d260-c044-ce3414c8e900.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
点击查看答案
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
点击查看答案
6.已知:int x=1,y=2,t;,则执行语句:t=x,y=x,x=t;后x、y的值分别是______。

A.   1,2

B.   2,1

C.   1,1

D.   2,2

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-d260-c044-ce3414c8e901.html
点击查看答案
18.max函数的功能是求整型数组a中前n个元素中的最大值。下列函数声明语句中错误的是______。

A.   int max(int *a,int n);

B.   int max(int a[10],int n);

C.   int max(int a,int n);

D.   int max(int a[ ],int n);

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