APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
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

答案:C

c语言冲就完事了家人们
23.设有:
#define ADD( ) x+y
则语句
printf("s=%d", 5*ADD(4,3));
的输出结果是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-a550-c044-ce3414c8e901.html
点击查看题目
14.执行以下程序段后,输出的结果是______。
int a,b=0;
for(a=1;a<=5;a++)
{
if(b>=5) continue;
b=b+a;
}
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-8bc8-c044-ce3414c8e901.html
点击查看题目
16.以下对二维数组b的定义,正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9998-c044-ce3414c8e900.html
点击查看题目
2.下列选项中,表达式______值为1。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7840-c044-ce3414c8e900.html
点击查看题目
24.设有以下定义:
typedef struct student
{
int num;
char name[10];
float score;
}Stu;
Stu t;
则下面对结构变量成员引用正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-a550-c044-ce3414c8e902.html
点击查看题目
15.以下选项中关于数组定义和初始化,正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3fc0-c044-ce3414c8e901.html
点击查看题目
2.以下关于常量的说法中正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-ca90-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
点击查看题目
18.以下正确的函数声明语句是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-ef88-c044-ce3414c8e901.html
点击查看题目
5.设有定义:int x=2;,以下表达式中,值不为6的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-2a20-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
c语言冲就完事了家人们

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

答案:C

c语言冲就完事了家人们
相关题目
23.设有:
#define ADD( ) x+y
则语句
printf("s=%d", 5*ADD(4,3));
的输出结果是______。

A.   s=35

B.   s=12

C.   s=23

D.   s=17

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-a550-c044-ce3414c8e901.html
点击查看答案
14.执行以下程序段后,输出的结果是______。
int a,b=0;
for(a=1;a<=5;a++)
{
if(b>=5) continue;
b=b+a;
}
printf( );

A.   6,15

B.   6,6

C.   3,6

D.   4,15

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-8bc8-c044-ce3414c8e901.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
点击查看答案
2.下列选项中,表达式______值为1。

A.   1-'0'

B.   1-'\0'

C.   '1'-0

D.   '\0'-'0'

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-7840-c044-ce3414c8e900.html
点击查看答案
24.设有以下定义:
typedef struct student
{
int num;
char name[10];
float score;
}Stu;
Stu t;
则下面对结构变量成员引用正确的是______。

A.   t.num

B.   Stu.num

C.   struct.name

D.   student.score

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-a550-c044-ce3414c8e902.html
点击查看答案
15.以下选项中关于数组定义和初始化,正确的是______。

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

B.   int a[5]=(1,2,3,4,5);

C.   int a[5]=0;

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

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3fc0-c044-ce3414c8e901.html
点击查看答案
2.以下关于常量的说法中正确的是______。

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

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

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

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

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-ca90-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
点击查看答案
18.以下正确的函数声明语句是______。

A.   double fun(int x;y);

B.   double fun(int x;int y);

C.   double fun(int x,int y);

D.   double fun(int x,y);

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-ef88-c044-ce3414c8e901.html
点击查看答案
5.设有定义:int x=2;,以下表达式中,值不为6的是______。

A.   x*=x+1

B.   x++,2*x

C.   x*=(1+x)

D.   2*x,x+=2

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