APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
5.设有定义:int b=0;,表达式______与其它表达式的值不相同。

A、  b+=1

B、  b++

C、  ++b

D、  b+1

答案:B

c语言冲就完事了家人们
13.执行如下程序段后,输出结果是_______。
int i=0,a=1;
while( )
{ i++; a=a+2; }
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e200-c044-ce3414c8e900.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
点击查看题目
18.max函数的功能是求整型数组a中前n个元素中的最大值。下列函数声明语句中错误的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4190-c044-ce3414c8e900.html
点击查看题目
21.设有int a=2,b=1,*p=&a;,则执行语句*p=3;a=a+b;后,变量a的值为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4960-c044-ce3414c8e900.html
点击查看题目
2.若有定义
int a;
float b;
double c;
程序运行时输入:3 4 5<回车>
能把3 输入给变量a、4 输入给变量b、5 输入给变量c 的语句是_____。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-7a58-c044-ce3414c8e901.html
点击查看题目
18.用户自定义的函数______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9d80-c044-ce3414c8e900.html
点击查看题目
16.设有int a[6][6];,则存储在a[4][4]之前的元素个数为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-eba0-c044-ce3414c8e901.html
点击查看题目
23.执行以下程序后,输出结果是______。
#include
#define S( ) ( )*( )
void main( )
{
int a=8,b=9;
printf(
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-a338-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
点击查看题目
17.字符串"A"和字符常量'A'各占用______个字节的内存空间。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-ef88-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
c语言冲就完事了家人们

5.设有定义:int b=0;,表达式______与其它表达式的值不相同。

A、  b+=1

B、  b++

C、  ++b

D、  b+1

答案:B

c语言冲就完事了家人们
相关题目
13.执行如下程序段后,输出结果是_______。
int i=0,a=1;
while( )
{ i++; a=a+2; }
printf( );

A.   0,1

B.   1,3

C.   1,0

D.   3,1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-e200-c044-ce3414c8e900.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
点击查看答案
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
点击查看答案
21.设有int a=2,b=1,*p=&a;,则执行语句*p=3;a=a+b;后,变量a的值为______。

A.   2

B.   3

C.   4

D.   5

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4960-c044-ce3414c8e900.html
点击查看答案
2.若有定义
int a;
float b;
double c;
程序运行时输入:3 4 5<回车>
能把3 输入给变量a、4 输入给变量b、5 输入给变量c 的语句是_____。

A.   scanf("%d%f%f",&a,&b,&c);

B.   scanf("%d%lf%lf",&a,&b,&c);

C.   scanf("%lf%lf%lf",&a,&b,&c);

D.   scanf("%d%f%lf",&a,&b,&c);

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-7a58-c044-ce3414c8e901.html
点击查看答案
18.用户自定义的函数______。

A.   必须要有形参

B.   可以嵌套调用

C.   可以嵌套定义

D.   定义的位置一定位于调用位置的前面

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9d80-c044-ce3414c8e900.html
点击查看答案
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
点击查看答案
23.执行以下程序后,输出结果是______。
#include
#define S( ) ( )*( )
void main( )
{
int a=8,b=9;
printf(

A.   64

B.   81

C.   89

D.   289

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-a338-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
点击查看答案
17.字符串"A"和字符常量'A'各占用______个字节的内存空间。

A.   1,1

B.   1,2

C.   2,1

D.   2,2

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