网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

9、下面程序段执行后的输出结果是()。 char *s="abcde" ; s+=2; printf("%d",s);

A.cde

B.字符'c'的地址

C.字符'c'

D.不确定


参考答案和解析
0 and 00 and 10 and 2
更多 “9、下面程序段执行后的输出结果是()。 char *s="abcde" ; s+=2; printf("%d",s);A.cdeB.字符'c'的地址C.字符'c'D.不确定” 相关考题
考题 有以下程序main(){ char s[]="abcde";s+=2;printf("%d\n",s[0]);}执行后的结果是A) 输出字符 a 的 ASCII 码B) 输出字符 c 的 ASCII 码C) 输出字符 cD) 程序出错

考题 (9)以下程序运行后的输出结果是【9】#include stdio.hmain( ){int k=1,s=0;do{if{((k2)!=0)continue;s+=k;k++;}while(k)10);printf(“s=d/n”,s);}

考题 有以下程序main(){ int i,s=0,t[]={l,2,3,4,5,6,7,8,9};for(i=0;i9;i+=2) s+=*(t+i);printf(" % d\n",s);}程序执行后的输出结果是A)45B)20C)25D)36

考题 以下程序运行后的输出结果是【 9 】#include stdio.hmain(){ int k=1,s=0;do{if((k%2)!=0) continue;s+=k;k++;}while(k10);printf("s=%d\n",s);}

考题 下面程序段的运行结果是 char *S="abcde"; s+=2;printf("%d",s);A.cdeB.字符'c'C.字符'c'的地址D.无确定的输出结果

考题 下面程序段中,输出*的个数是 char *s="\ta\018bc"; for(;*s!='\0';s++)printf("*");A.9B.5C.6D.7

考题 有以下程序 main() { char s[]="abcde"; s+=2; printf("%d\n",s[0]); } 执行后的结果是______。A.输出字符a的ASCⅡ码B.输出字符c的ASCⅡ码C.输出字符cD.程序出错

考题 设已执行预编译命令include,以下程序段的输出结果是char s[]="an apple";printf("%d\ 设已执行预编译命令#include<string.h>,以下程序段的输出结果是 char s[]=" an apple" ; printf("%d\n",strlen(s));A.7B.8C.9D.10

考题 有以下程序main(){int i,s=0,t[]={l,2,3,4,5,6,7,8,9};for(i=0;i9;i+=2)s+=*(t+i);printf("%d\n",s);}程序执行后的输出结果是A.45B.20C.25D.36

考题 有以下程序: maln() { int i,s=0,t[]={1,2,3,4,5,6,7,8,9}; for(i=0;i<9;i+=2)s+=*(t+i); printf("%d\n",s); } 程序执行后的输出结果是( )。A.45B.20C.25D.36

考题 下面程序段的输出结果是 ______。 char *s="12345"; s+=2; cout<<*s;A.345B.字符'3'C.字符'3'的地址D.无确定的输出结果

考题 以下程序运行后的输出结果是【】。includemain(){int k=1,s=0; do{ if((k%2)!=0)continue; 以下程序运行后的输出结果是【 】。include<stdio.h>main(){ int k=1,s=0;do{if((k%2)!=0) continue;s+=k; k++;}while(k>10);printf("s+%d\n",s);}

考题 有下列程序:main{int i,s=0,t[]={1,2,3,4,5,6,7,8,9};for(i=0;i9;i+=2)s+=*(t+i);printf(9;i+=2)s+=*(t+i);printf(%d\n,s);}程序执行后的输出结果是( )。A.A.45B.20C.25D.36

考题 以下程序段的输出结果是 char s[]="\\141\141abc\t"; printf ("%d\n",strlen(s));A.9B.12C.13D.14

考题 有以下程序: 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.10B.9C.7D.8

考题 下面程序段的运行结果是 include void main( ) {char*s="abcde"; S+=2; 下面程序段的运行结果是 #include<iostream.h> void main( ) { char*s="abcde"; S+=2; cout<<s;}A.cdeB.字符'c'C.字符'c'的地址D.无确定的输出结果

考题 有以下程序:includeint a=2;int f(int *a){return (*a) ++;}main(){ int s=0;{ int a= 有以下程序: #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.10B.9C.7D.8

考题 有以下程序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

考题 下面程序段的输出结果是______。 char *s="abcde"; s+=2;printf("%d",s);A.cdeB.字符'c'C.字符'c'的地址D.无确定的输出结果

考题 有下列程序: includestdi0.hvoidfun(char*s){while(*s){if(*s%2==(1)printf(%Cstdi0.hvoidfun(char*s){while(*s){if(*s%2==(1)printf(%C,*s);s+十:}}voidmain( ){chara[]={good);fun(a);printf(n);}注意:字母a的ASCIl码值为97,程序运行后的输出结果是( )。A.dB.goC.godD.good

考题 有下列程序: #includestdi0.h voidfun(char*s) {while(*s) {if(*s%2==(1)printf("%C",*s); s+十: } } voidmain( ) {chara[]={"good"); fun(a);printf("n"); } 注意:字母a的ASCIl码值为97,程序运行后的输出结果是( )。A.dB.goC.godD.good

考题 设已执行预编译命令#includestring.h,以下程序段的输出结果是char s[]=" an apple" ;printf(" %d\n",strlen(s));A.7B.8C.9D.10

考题 以下程序运行后的输出结果是______。 main() { char*s="abcde";s+=2;printf("%1d\n",s);}A.cdeB.字符c的ASCII码值C.字符c的地址D.出错

考题 设已执行预编译命令include,以下程序段的输出结果是()。char s[]="an apple";printf(" 设已执行预编译命令#include<string.h>,以下程序段的输出结果是( )。 char s[]=" an apple" ; printf(" %d\n" ,strlen(s));A.7B.8C.9D.10

考题 下面程序输出的结果是()。includemain(){char *a="1234";fun(a);printf("\n");}fun(cha 下面程序输出的结果是( )。 #include<stdio.h> main() { char *a="1234"; fun(a); printf("\n"); } fun(char *s) { char t; if(*s) { t=*S++;fun(s);} else return; if(t!='\0') putchar(t); }A.1234B.4321C.1324D.4231

考题 以下程序段的输出结果是()。    Char s[]I=”/1238/080abc”;    printf(”%d/n”,strlen(s));

考题 单选题有以下程序 main() { char s[]="abcde"; s+=2; printf("%d/n",s[0]); } 执行后的结果是()A 输出字符a的ASCII码B 输出字符c的ASCII码C 输出字符cD 程序出错

考题 单选题有以下程序(说明:字母A的ASCII码值是65):#include void fun(char *s){ while(*s) {  if(*s%2)printf(%c,*s);  s++; }}main(){ char a[]=BYTE; fun(a); printf();}程序运行后的输出结果是(  )。A BYB BTC YTD YE