APP下载
首页
>
财会金融
>
C语言选择题期末复习2024.1.7
搜索
C语言选择题期末复习2024.1.7
题目内容
(
单选题
)
106.下列定义的字符数组中,输出 printf('%s\n', str[2]) ;的输出是()。
static str[3][20] ={ 'basic', 'foxpro', 'windows'};

A、basic

B、foxpro

C、windows

D、输出语句出错

E、

F、

G、

H、

I、

J、

答案:C

解析:

C语言选择题期末复习2024.1.7
57.若有定义:struct KeyWord{char Key[20]; int ID;}kw[] = { "void", 1, "char", 2, "int", 3, "float", 4, "double", 5 };则 printf("%c,%d\n", kw[3].Key[0], kw[3].ID);语句的输出结果为( )。
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-97d4-c0d6-ed9455688500.html
点击查看题目
25.C 语言可执行程序的开始执行点是( )
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-5676-c0d6-ed9455688500.html
点击查看题目
106.下列定义的字符数组中,输出 printf('%s\n', str[2]) ;的输出是()。
static str[3][20] ={ 'basic', 'foxpro', 'windows'};
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-f131-c0d6-ed9455688500.html
点击查看题目
58.在 C 语言中,函数的隐含存储类别是( )。 A.auto
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-99f4-c0d6-ed9455688500.html
点击查看题目
85.以下选项中,不能正确赋值的是( )
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-cd33-c0d6-ed9455688500.html
点击查看题目
9.如果要求在 if 后的判断条件是 a 不等于 0,则下列选项中能正确表达这一关系的是( )
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-36a7-c0d6-ed9455688500.html
点击查看题目
89.设有以下说明语句:struct stu {int a; float b;} suttype;则下面叙述不正确的是( )
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-d4b1-c0d6-ed9455688500.html
点击查看题目
75.若有函数调用语句:fun(a+b, (x,y), fun(n+k,d,( ); 在此函数调用语句中实参的个数是( )。
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-ba69-c0d6-ed9455688500.html
点击查看题目
36.下列程序段的输出结果为( )int y=1;while(y--);printf("y=%d\n",y);
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-7046-c0d6-ed9455688500.html
点击查看题目
34.假设有如下定义:struct sk{int a; float b;} data, *p;若有 p=&data; 则对 data 中的 a 域的正确引用是( )。
https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-6c96-c0d6-ed9455688500.html
点击查看题目
首页
>
财会金融
>
C语言选择题期末复习2024.1.7
题目内容
(
单选题
)
手机预览
C语言选择题期末复习2024.1.7

106.下列定义的字符数组中,输出 printf('%s\n', str[2]) ;的输出是()。
static str[3][20] ={ 'basic', 'foxpro', 'windows'};

A、basic

B、foxpro

C、windows

D、输出语句出错

E、

F、

G、

H、

I、

J、

答案:C

解析:

C语言选择题期末复习2024.1.7
相关题目
57.若有定义:struct KeyWord{char Key[20]; int ID;}kw[] = { "void", 1, "char", 2, "int", 3, "float", 4, "double", 5 };则 printf("%c,%d\n", kw[3].Key[0], kw[3].ID);语句的输出结果为( )。

A.  i 3

B.  n 3

C.  f 4

D.  l 4

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-97d4-c0d6-ed9455688500.html
点击查看答案
25.C 语言可执行程序的开始执行点是( )

A.  程序中第一条可执行语句

B.  程序中第一个函数

C.  程序中的 main 函数

D.  包含文件的第一个函数

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-5676-c0d6-ed9455688500.html
点击查看答案
106.下列定义的字符数组中,输出 printf('%s\n', str[2]) ;的输出是()。
static str[3][20] ={ 'basic', 'foxpro', 'windows'};

A. basic

B. foxpro

C. windows

D. 输出语句出错

E.

F.

G.

H.

I.

J.

解析:

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-f131-c0d6-ed9455688500.html
点击查看答案
58.在 C 语言中,函数的隐含存储类别是( )。 A.auto

A.  32

B.  16

C.  8

D.  24

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-99f4-c0d6-ed9455688500.html
点击查看答案
85.以下选项中,不能正确赋值的是( )

A. char s1[10];s1="Ctest";

B. char s2[]={'C', 't', 'e', 's', 't'};

C. char s3[20]="Ctest";

D. char *s4="Ctest\n"

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-cd33-c0d6-ed9455688500.html
点击查看答案
9.如果要求在 if 后的判断条件是 a 不等于 0,则下列选项中能正确表达这一关系的是( )

A.  a<>0

B.  !a

C.  a=0

D.  a

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-36a7-c0d6-ed9455688500.html
点击查看答案
89.设有以下说明语句:struct stu {int a; float b;} suttype;则下面叙述不正确的是( )

A. struct 是结构体类型的关键字

B. struct stu 是用户定义的结构体类型

C. suttype 是用户定义的结构体类型名

D. a 和 b 都是结构体成员

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-d4b1-c0d6-ed9455688500.html
点击查看答案
75.若有函数调用语句:fun(a+b, (x,y), fun(n+k,d,( ); 在此函数调用语句中实参的个数是( )。

A.  3

B.  4

C.  5

D.  6

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-ba69-c0d6-ed9455688500.html
点击查看答案
36.下列程序段的输出结果为( )int y=1;while(y--);printf("y=%d\n",y);

A. .y=-1

B.  y=0

C.  死循环

D.  y=9

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-7046-c0d6-ed9455688500.html
点击查看答案
34.假设有如下定义:struct sk{int a; float b;} data, *p;若有 p=&data; 则对 data 中的 a 域的正确引用是( )。

A. .(*p).data.a

B. (*p).a

C. p->data.a

D. p.data.a

https://www.shititong.cn/cha-kan/shiti/0002ec2a-c3d4-6c96-c0d6-ed9455688500.html
点击查看答案
试题通小程序
试题通app下载