首页 > 自考
题目内容 (请给出正确答案)
[主观题]

有以下程序main () { int aa[4][4]={{1,2,3,4}{5,6,7,8},{3,9.10,2},{4,2,9,6}}; int i. s=0 for

有以下程序 main () { int aa[4][4]={{1,2,3,4} {5,6,7,8},{3,9.10,2},{4,2,9,6}}; int i. s=0 for(i=0;i<4;i++) s+=aa[i] [1]; printf ("%d\n", s); } 程序运行后的输出结果是

A.11

B.19

C.13

D.20

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“有以下程序main () { int aa[4][4]={{…”相关的问题
第1题
有以下程序 include <lostream> using namespace std; int main() { int

有以下程序 include <lostream> using namespace std; int main() { int i=010,j=10; cout<<(i)<<","<<j--<<endl; return 0; } 则该程序运行后的输出结果是【 】。

点击查看答案
第2题
有以下程序 int a=3; main() { int s=0; { int a=5;s+=a++;} s+=a++; printf("%d\n",s); } 程序

有以下程序 int a=3; main() { int s=0; { int a=5;s+=a++;} s+=a++; printf("%d\n",s); } 程序运行后的输出结果是______。

A.8

B.10

C.7

D.11

点击查看答案
第3题
有以下程序#include<stdio.h>main(){int a=7; while(a--); printf("%d\n",a);}程序运行后

有以下程序

#include<stdio.h>

main()

{ int a=7;

while(a--);

printf("%d\n",a);

}

程序运行后的输出结果是

A.-1

B.0

C.1

D.7

点击查看答案
第4题
有以下程序main(){ int a=666,b=888;printf("%d\n",a,b);}程序运行后的输出结果是

A.错误信息

B.666

C.888

D.666,888

点击查看答案
第5题
有以下程序int f(int n){ if(n==1)return 1;else return f(n-1)+1;}main(){ int i,j=0;for(

A.4

B.3

C.1

D.2

点击查看答案
第6题
有以下程序#include <stdio.h>main(){ int x=1, y=2, z=3; if(x>y) if(y<z) printf(

有以下程序#include <stdio.h>main() { int x=1, y=2, z=3; if(x>y) if(y<z) printf("%d", ++z); else printf("%d", ++y); printf("%d\n", x++);}程序的运行结果是A.331 B.41 C.2 D.1

点击查看答案
第7题
有以下程序,程序运行后的输出结果是()main(){int a[10]={1,2,3,4,5,6,7,8,9,10),*p=&a[3],*q=p+2;printf("%d\11",*p+*q);}

A.16

B.10

C.8

D.6

点击查看答案
第8题
有以下程序()#include<stdio.h>int a=2;int f(int *A){return(*A)++;}main(){int s=0;{int a=5;s+=f(&a):}s+=f(&a);printf("%d\n",s);}执行后输出结果是

A.10

B.9

C.7

D.8

点击查看答案
第9题
有以下程序#includemain(){int y=9 ;for( ; y>0 ; y--)if(y%3==0 ) printf("%d" ,
有以下程序#includemain(){int y=9 ;for(; y>0 ; y--)if(y%3==0 ) printf("%d" ,

有以下程序

#include

main()

{

int y=9 ;

for(; y>0 ; y--)

if(y%3==0 ) printf("%d" , --y) ;}

程序的运行结果是_____

点击查看答案
第10题
有以下程序:#include<stdio.h>void fun(int a,int b,int c){ a=456,b=567,c=678;}main(){ int x=

有以下程序: #include <stdio.h> void fun(int a,int b,int c) { a=456,b=567,c=678;} main() { int x=10,y=20,z=30; fun(x,y,z); printf("%d,%d,%d\n",x,y,z); } 此程序的输出结果是()。

A.30,20,10

B.10,20,30

C.456,567,678

D.678,567,456

点击查看答案
第11题
有以下程序:#include<stdio.h>main(){int x=3,y=2,z=1; printf("%d\n",x/y&~z);程序运行后的

有以下程序: #include <stdio.h> main() { int x=3,y=2,z=1; printf("%d\n",x/y&~z); 程序运行后的输出结果是()。

A.3

B.2

C.1

D.0

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改