题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-04-28 20:51:39

[单选题]请读程序: main() { static int a[]={1,2,3,4,5,6} int *p; int i; p=a; *(p+3)+=2; printf("n1=%d,n2=%d\n:",*p,*(p+3)); } 其输出是( )。
A.n1=1;n2=5
B.n1=2,n2=6
C.n1=1 n2=7
D.n1=1,n2=6

更多"[单选题]请读程序: main() { static int a[]="的相关试题:

[单选题]请读程序: main() { static int a[]={1,2,3,4,5,6} int *p; int i; p=a; *(p+3)+=2; printf("n1=%d,n2=%d\n:",*p,*(p+3)); } 其输出是( )。
A.n1=1;n2=5
B.n1=2,n2=6
C.n1=1 n2=7
D.n1=1,n2=6
[单选题]请读程序: main() { int a=1,b=2; printf("%d\n",a=a+1,a+6,b+2);} 则上面程序的输出结果是()。
A.2
B.3
C.4
D.1
[单选题]有以下程序 int fun(int x[],int n) {static int sum=0,i; for(i=0;iA.45
B.50
C.60
D.55
[单选题]有以下程序 fun(int x,int y) {static int m=0,i=2; i+=m+1;m=i+x+y; return m; } main() {int j=1,m=1,k; k=fun(j,m); printf("%d,",k); k=fun(j,m); printf("%d\n",k); } 执行后的输出结果
A.5,5
B.5,11
C.11,11
D.11,5
[单选题]请读程序: main() { char *p; char s[80]; scanf("%s",s); p=s[0]; printf("%s",p); } 请判断上面程序选出正确答案是()。
A.错误:p=s[0]; 正确:p=*s;
B.错误:p=s[0]; 正确:p=s[];
C.错误:p=s[0]; 正确:p=s;
D.错误:p=s[0]; 正确:p=&s;
[单选题]有以下程序 int add(int a,int b){return+b};} main() {int k,(*f)(),a=5,b=10; f=add; ... }则以下函数调用语句错误的是()。
A.k=(*f)(a,b);
B.k=add(a,b);
C.k=*f(a,b);
D.k=f(a,b);
[单选题]有以下程序 fun(int x,int y){return(x+y);} main() {int a=1,b=2,c=3,sum; sum=fun((a++,b++,a+b),c++); printf("%d\n",sum); } 执行后的输出结果是()。
A.6
B.7
C.8
D.9
[单选题]有以下程序 #include int fun() {static int x=1; x*=2; return x; } void main() {int i,s=1; for (i=1;i<=2;i++) s=fun(); printf("%d\n",s); } 执行后的输出结果是( )。
A.1
B.2
C.3
D.4
[单选题]阅读下列代码 public class Person{ static int arr[ ] = new int[10]; public static void main (String[] args) { System.out.println(arr[9]); } } 该代码运行的结果是:
A.编译时将产生错误
B.编译时正确,运行时将产生错误
C.输出0
D.输出空
[单选题]有以下程序 main() {int a=1,b=3,c=5; int *p1=&a,*p2=&b,*p=&c; *p=*p1*(*p2); printf("%d\n",c); } 执行后的输出结果是()。
A.1
B.2
C.3
D.4
[单选题]有以下程序 #include "stdio.h" void main() { int x=0x02ff,y=0x0ff00; printf("%d\n",(x&y)>>4|0x005f); } 执行后的输出结果是( )。
A.127
B.255
C.128
D.1

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码