APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
20.执行以下程序后,输出结果是______。
#include
void fun( )
{
printf( );
a=30; b=40;
}
void main( )
{
int x=10, y=20;
fun( );
printf( );
}

A、  10, 20 30, 40

B、  0, 0, 30 40

C、  0, 0, 10 20

D、  10, 20 10, 20

答案:D

c语言冲就完事了家人们
1.下列关于C语言程序的叙述中,不正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2850-c044-ce3414c8e900.html
点击查看题目
3.下面用户标识符中合法的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2850-c044-ce3414c8e902.html
点击查看题目
24.若有:
union keyboard
{
char key[2];
int value;
}k[104];
则下列说法中,正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-a338-c044-ce3414c8e901.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
点击查看题目
15.以下选项中关于数组定义和初始化,正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-3fc0-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
点击查看题目
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
点击查看题目
16.以下对二维数组b的定义,正确的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9998-c044-ce3414c8e900.html
点击查看题目
13.执行以下程序段后,输出的结果是______。
int a=0;
do
{
a=a+2;
}while(a!=2);
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-8bc8-c044-ce3414c8e900.html
点击查看题目
22.若有int x[10],*p=x;,则*(p+6)表示______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-9f50-c044-ce3414c8e901.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
c语言冲就完事了家人们

20.执行以下程序后,输出结果是______。
#include
void fun( )
{
printf( );
a=30; b=40;
}
void main( )
{
int x=10, y=20;
fun( );
printf( );
}

A、  10, 20 30, 40

B、  0, 0, 30 40

C、  0, 0, 10 20

D、  10, 20 10, 20

答案:D

c语言冲就完事了家人们
相关题目
1.下列关于C语言程序的叙述中,不正确的是______。

A.   C语言程序由一个或多个函数组成

B.   C语言程序总是从第一个函数开始执行

C.   C语言程序中必须含有main( )函数

D.   C语言程序中的语句必须以分号结束

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2850-c044-ce3414c8e900.html
点击查看答案
3.下面用户标识符中合法的是______。

A.   iPhone#

B.   13a

C.   char

D.   _int

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2850-c044-ce3414c8e902.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
点击查看答案
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
点击查看答案
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
点击查看答案
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
点击查看答案
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
点击查看答案
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
点击查看答案
13.执行以下程序段后,输出的结果是______。
int a=0;
do
{
a=a+2;
}while(a!=2);
printf( );

A.   0

B.   2

C.   4

D.   6

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-8bc8-c044-ce3414c8e900.html
点击查看答案
22.若有int x[10],*p=x;,则*(p+6)表示______。

A.   数组元素x[6]的地址

B.   数组元素x[6]的值

C.   数组元素x[7]的地址

D.   数组元素x[7]的值

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