首页 > 大学专科> 电子信息
题目内容 (请给出正确答案)
[主观题]

以下程序运行后的输出结果是【 】。 main() {char s[]="9876",*p for(p=s;p<s+2;p++

以下程序运行后的输出结果是【 】。 main() {char s[]="9876",*p for(p=s;p<s+2;p++)printf("%s\n",p); }

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“以下程序运行后的输出结果是【 】。 main() {char…”相关的问题
第1题
有以下程序 include<stdio.h> ma:in(){ ints,t,A=10; doubleB=6: s=sizeof(A); t=size

有以下程序 include<stdio.h> ma:in(){ ints,t,A=10; doubleB=6: s=sizeof(A); t=sizeof(B); printf(%d,%d\n,s,t); } 在VC6平台上编译运行,程序运行后的输出结果是

A.4,4

B.2,4

C.4,8

D.10,6

点击查看答案
第2题
有以下程序 include<stdio.h> include<stdlib.h> main() {int*a,*b,*c; a=b=c=(int*)ma

有以下程序 include<stdio.h> include<stdlib.h> main() {int*a,*b,*c; a=b=c=(int*)malloc(sizeof(int)); *a=l;*b=2,*c=3; a=b: printf(%d,%d,%d\n,*a,*b,*c); } 程序运行后的输出结果是

A.2,2,3

B.3,3,3

C.1,2,3

D.1,1,3

点击查看答案
第3题
有以下程序: void f(int*x,iht * y) { int t; t=*x;*x;=*y;*y=t; } ma

有以下程序: void f(int*x,iht * y) { int t; t=*x;*x;=*y;*y=t; } main() { int a[8]={1,2,3,4,5,6,7,8},i,*p,*q; p=a;q=&a[7]; while(p) { f(p,q);p++;q--;} for(i=0;i<8;i++)printf("%d,",a[i]); } 程序运行后的输出结果是【 】。

点击查看答案
第4题
下列程序执行后的输出结果是()。#define MA(x) x*(x-1)void main(){int a=1,b=2;printf("%d/n",MA(1+a+b));}

A.6

B.8

C.10

D.12

点击查看答案
第5题
以下程序运行后的输出结果是______。 char s[]="\\141\141abc\t"; printf(&quo

以下程序运行后的输出结果是______。

char s[]="\\141\141abc\t";

printf("%d\n",strlen(s));

点击查看答案
第6题
以下程序运行后的输出结果是______。 main() {char m; m='B'+32;printf("%c\n",

以下程序运行后的输出结果是______。

main()

{char m;

m='B'+32;printf("%c\n",m);

}

点击查看答案
第7题
以下程序运行后的输出结果是【 】。 include <stdio.h> main () { iht x=

以下程序运行后的输出结果是【 】。 include <stdio.h> main () { iht x=0210; printf("%x \n" ,x); }

点击查看答案
第8题
以下程序运行后的输出结果是______。 main() { char s[]="9876",*P; for(p=s;p<s+2;p++)

以下程序运行后的输出结果是______。

main()

{ char s[]="9876",*P;

for(p=s;p<s+2;p++)

printf("%s\n",P);

}

点击查看答案
第9题
以下程序运行后的输出结果是【 】。 include <stdio.h> main() { char m; m=

以下程序运行后的输出结果是【 】。 include <stdio.h> main() { char m; m=B+32; printf("%c\n",m); }

点击查看答案
第10题
以下程序运行后的输出结果是______。 main { inn a=b= c=5: if (c=a+b

以下程序运行后的输出结果是______。 main { inn a=b= c=5: if (c=a+b) printf ("yes\n); else printf ("no\n); }

点击查看答案
第11题
以下程序的输出结果是【 】。 include <stdio.h> define MAX(x,y)(x),(y)?(x):(y) ma

以下程序的输出结果是【 】。 include <stdio.h> define MAX(x,y)(x),(y)?(x):(y) main() { int a=5,b=2,c=3,d=3,t; t=MAX(a+b,c+d)*10; printf("%d\n",t); }

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