网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列程序的输出结果是()。includemain(){char a[]={'a','b','c','d','e','f','\0'};int
下列程序的输出结果是( )。 #include<stdio.h> main() { char a[]={'a','b','c','d','e','f','\0'}; int i,j; i=sizeof(a); j=strlen(a); printf("%d,%d",i,j); }
A.7,7
B.7,6
C.6,6
D.6,7
参考答案
更多 “ 下列程序的输出结果是()。includemain(){char a[]={'a','b','c','d','e','f','\0'};int 下列程序的输出结果是( )。 #include<stdio.h> main() { char a[]={'a','b','c','d','e','f','\0'}; int i,j; i=sizeof(a); j=strlen(a); printf("%d,%d",i,j); }A.7,7B.7,6C.6,6D.6,7 ” 相关考题
考题
下列程序的输出结果是______。 includef(char 8s){char *p=s;while(*p!='\0')p++;retur
下列程序的输出结果是______。# include<stdio.h>f(char 8s){ char *p=s; while(*p!='\0')p++; return(p-s);}main(){ printf("%d\n",f("ABCDEF"));}A.3B.6C.8D.0
考题
下面程序的输出结果是______。 include main() {char *p[]="BOOL","OPK","H","SP"};int
下面程序的输出结果是______。 #include<stdio.h> main() { char *p[]="BOOL","OPK","H","SP"}; int i; for(i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n"); }A.SOB.SPC.SPOPKD.SHOB
考题
以下程序的输出结果是( )。 includefun(){ int a=0;a+=3;printf("%d",A); } main() {int
以下程序的输出结果是( )。include<stdio.h>fun(){ int a=0;a+=3;printf("%d",A);}main(){ int cc;for(cc=1;cc<=4;cc++)fun();printf("\n");}
考题
以下程序的输出结果是【 】。includeincludechar*fun(char*0{ char *p--t;retur
以下程序的输出结果是【 】。include <stdio.h>include <string.h>char *fun(char *0{ char *p--t;return (p+strlen(t)/2);}main(){ char *str="abcdefgh";str=ftm(str);puts(str);}
考题
有以下程序: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
考题
下面程序的输出结果是_______。includemain(){char*p[]={"DOOL","OPK","H","SP"}; int
下面程序的输出结果是_______。 #include<stdio.h> main() { char*p[]={"DOOL","OPK","H","SP"}; int i; for (i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n"); }A.SOB.SPC.SPOPKD.SHOB
考题
请读程序: includef(char * s){cahr * p=s;while(* p!='\0')p++;return(p-s);}main(){
请读程序: # include<stdio.h> f(char * s) {cahr * p=s; while(* p!='\0')p++; return(p-s); } main() {printf("%d\n”,f("ABCDEF"));} 上面程序的输出结果是 ( )A.3B.6C.8D.0
考题
下列程序的输出结果是()。includemain(){ int a=2,b=3,p;p=f(a,b);printf("%d",p);}int
下列程序的输出结果是( )。 #include<stdio.h> main() { int a=2,b=3,p; p=f(a,b); printf("%d",p); } int f(a,b) { int c; if(a>b)c=1; else if(a==b)c=0; else c=-1; return(c) ; }A.-1B.0C.1D.2
考题
以下程序的输出结果是【 】。includeincludechar*fun(char*t){ char *p=t;retur
以下程序的输出结果是【 】。include <stdio.h>include <string.h>char *fun(char *t){ char *p=t;return (p+strlen(t)/2);}main(){ char *str="abcdefgh";str=ftm(str);puts(str);}
热门标签
最新试卷
![瑞牛题库 章节练习 历年真题 模拟试卷](http://assets.51tk.com/51_sidebar_right_index.jpg)