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

有以下程序 #include<stdio.h> main() {char cl,c2; c1=A+8-4 c2=A+8-5; printf("%

有以下程序 #include<stdio.h> main() {char cl,c2; c1=A+8-4 c2=A+8-5; printf("%C,%d\n",cl,c2); } 已知字母A的ASCIl码为65,程序运行后的输出结果是()。

A.E,69

B.D,69

C.E,D

D.输出无定值

答案
收藏

A
本值输出两个值,%c为输出一个字母,0/4d输出一个数字。“A”的ASCIl码为65,再加4之后为69,也就是字母E,所以本题A正确。

如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“有以下程序 #include<stdio.h> main()…”相关的问题
第1题
有以下程序:#include <stdio. h>main (){char a :'a',b; printf("% c," , + + a); printf("%c

有以下程序: #include <stdio. h> main () { char a :'a',b; printf("% c," , + + a); printf("%c \n" ,b =a++); }程序运行后的输出结果是()。

A.b,b

B.b,c

C.a,b

D.a,c

点击查看答案
第2题
有以下程序#include<stdio.h>#define S(x)4*(x)*x+1main(){int k=5,j=2; printf(“%d\n”,S(

有以下程序

#include<stdio.h>

#define S(x)4*(x)*x+1

main()

{int k=5,j=2;

printf(“%d\n”,S(k+j));

}

程序运行后的输出结果是

A.197

B.143

C.33

D.28

点击查看答案
第3题
(21 )有以下程序# include (stdio.h >main (){ int a = l ; b = 2 ;for (; a < 8 ; a++ ) { b

(21 )有以下程序

# include (stdio.h >

main ()

{ int a = l ; b = 2 ;

for (; a < 8 ; a++ ) { b+=a ; a+=2 ; }

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

}

程序运行后的输出结果是

A ) 9 , 18

B ) 8 , 11

C ) 7 , 11

D ) 10 , 14

点击查看答案
第4题
有以下程序#include<stdio.h>#include<string.h>main(){char x[]=“STRING”;x[0]=0;x[1]=’\0’;x[2]=’0’;printf(”%d%d\n”,sizeof(x),strlen(x));}程序运行后的输出结果是()。

A.6 1

B.7 0

C.6 3

D.7 1

点击查看答案
第5题
‎有以下程序‎#include‎void main()‎{int a ;‎scanf("%d",&a);‎if(a >= 0)‎{if

A.-11 is a positive odd number.

B.-11 is a negative odd number.

C.-11 is a positive even number.

D.11 is a negative even number.

点击查看答案
第6题
‎有以下程序‎#include‎void main()‎{ int a,b,d=25;‏a=d/10%9;‏b=a&&(-1);‏printf("%d,%d/n",a,b);}‎程序运行后的输出结果是()。

A.2,1

B.2,0

C.3,1

D.6,1

点击查看答案
第7题
有以下程序#include<stdio.h>int fun(){static int x=1;x+=1;return x;}main(){int i,s=

有以下程序

#include<stdio.h>

int fun()

{static int x=1;

x+=1;return x;

}

main()

{int i,s=1;

for(i=1;i<=s;i++)s+=fun();

printf(”%d\n”,s);

}

程序运行后的输出结果是()。

A.11

B.21

C.6

D.120

点击查看答案
第8题
有以下程序: #include<stdio.h> void f(int*p); main {int a[5]={1,2,3,4,5),*r=a;

有以下程序: #include<stdio.h> void f(int*p); main {int a[5]={1,2,3,4,5),*r=a; f(r);printf("%d\n",*r); } void f(int*p) {p=p+3;printf("%d,",*p);} 程序运行后的输出结果是()。

A.1,4

B.4,4

C.3,1

D.4,1

点击查看答案
第9题
有以下程序:#include<stdio.h>void fun(char *a,char*B){while(*a=='*')a++;while(*b=*A){b++;a+

有以下程序: #include<stdio.h> void fun(char *a,char*B){while(*a=='*')a++; while(*b=*A){b++;a++;} } main() {char*s="****a*b****",t[80]; fun(s,t);puts(t); } 程序的运行结果是()。

A.*****a*b

B.a*b

C.a*b****

D.ab

点击查看答案
第10题
有以下程序#include<stdio.h>int f(int m){static int n=0; n+=m: return n;}main(){ int

有以下程序

#include<stdio.h>

int f(int m)

{ static int n=0;

n+=m:

return n;

}

main()

{ int n=0;

printf("%d,",f(n));

printf("%d\n",f(n++));

}

程序运行后的输出结果是

A.1,2

B.1,1

C.2,3

D.3,3

点击查看答案
第11题
有以下程序: #include<stdio.h> #define N 8 void fun(int*x,int i) {*x=*(x+i);) main(

有以下程序: #include<stdio.h> #define N 8 void fun(int*x,int i) {*x=*(x+i);) main() { int a[N]={1,2,3,4,5,6,7,8},i; fun(a,2); for(i=0;i<N/2;i++) {printf("Ha",a[i]);} printf("\n"); } 程序运行后的输出结果是()。

A.1313

B.2234

C.3234

D.1234

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