APP下载
首页
>
财会金融
>
c语言冲就完事了家人们
搜索
c语言冲就完事了家人们
题目内容
(
单选题
)
16.设有定义:int a[3][3]={{1},{2}},b[3][3]={1,2};,则执行语句printf("%d",a[1][0]+b[0][0]);后,输出的结果是______。

A、  0

B、  1

C、  2

D、  3

答案:D

c语言冲就完事了家人们
11.设有int x=1,y=2,z;,则表达式z=x>y?x+y:x-y值为______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8de0-c044-ce3414c8e900.html
点击查看题目
12.执行下列程序段后,屏幕输出结果是______。
int k=3;
for(;k<7;k++)
k++;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-de18-c044-ce3414c8e900.html
点击查看题目
14.执行以下程序段后,输出的结果是______。
int i,s=0;
for(i=0;i<10;i++)
if(i%2==0)
continue;
else
s=s+i;
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e7b8-c044-ce3414c8e900.html
点击查看题目
12.设有int i;,则以下循环中printf( );语句执行______。
for(i=2;i=0;i--)
printf( );
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-87e0-c044-ce3414c8e901.html
点击查看题目
21.设p1和p2是指向同一个int型变量的指针变量,k为int 型变量,则不能正确执行的语句是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-f758-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
点击查看题目
14.执行以下程序段后,输出的结果是______。
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=5;j++)
if(j%2==0) break;
printf( );
}
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-91c8-c044-ce3414c8e901.html
点击查看题目
18.max函数的功能是求整型数组a中前n个元素中的最大值。下列函数声明语句中错误的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-4190-c044-ce3414c8e900.html
点击查看题目
3.下面用户标识符中合法的是______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-2850-c044-ce3414c8e902.html
点击查看题目
18.用户自定义的函数______。
https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-9d80-c044-ce3414c8e900.html
点击查看题目
首页
>
财会金融
>
c语言冲就完事了家人们
题目内容
(
单选题
)
手机预览
c语言冲就完事了家人们

16.设有定义:int a[3][3]={{1},{2}},b[3][3]={1,2};,则执行语句printf("%d",a[1][0]+b[0][0]);后,输出的结果是______。

A、  0

B、  1

C、  2

D、  3

答案:D

c语言冲就完事了家人们
相关题目
11.设有int x=1,y=2,z;,则表达式z=x>y?x+y:x-y值为______。

A.   1

B.   2

C.   3

D.   -1

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-8de0-c044-ce3414c8e900.html
点击查看答案
12.执行下列程序段后,屏幕输出结果是______。
int k=3;
for(;k<7;k++)
k++;
printf( );

A.   3

B.   6

C.   7

D.   8

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fa-de18-c044-ce3414c8e900.html
点击查看答案
14.执行以下程序段后,输出的结果是______。
int i,s=0;
for(i=0;i<10;i++)
if(i%2==0)
continue;
else
s=s+i;
printf( );

A.   0

B.   10

C.   20

D.   25

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-e7b8-c044-ce3414c8e900.html
点击查看答案
12.设有int i;,则以下循环中printf( );语句执行______。
for(i=2;i=0;i--)
printf( );

A.   无限次

B.   0次

C.   1次

D.   2次

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fc-87e0-c044-ce3414c8e901.html
点击查看答案
21.设p1和p2是指向同一个int型变量的指针变量,k为int 型变量,则不能正确执行的语句是______。

A.   k=*p1+*p2;

B.   p2=k;

C.   p1=p2;

D.   k=*p1 * (*p2);

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-f758-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
点击查看答案
14.执行以下程序段后,输出的结果是______。
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=5;j++)
if(j%2==0) break;
printf( );
}

A.   1 1 1

B.   2 2 2

C.   1 3 5

D.   2 4 6

https://www.shititong.cn/cha-kan/shiti/0005e1ce-a8fb-91c8-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
点击查看答案
3.下面用户标识符中合法的是______。

A.   iPhone#

B.   13a

C.   char

D.   _int

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

A.   必须要有形参

B.   可以嵌套调用

C.   可以嵌套定义

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

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