下列程序的输出结果是______。 main ( ) { char a [10] ={ 9, 8,7,6, 5, 4,3, 2, 1,0},*p=a+5; printf ("%d", *--p); }A.非法B.a[4]的地址C.5D.3
下列程序的输出结果是______。 main ( ) { char a [10] ={ 9, 8,7,6, 5, 4,3, 2, 1,0},*p=a+5; printf ("%d", *--p); }
A.非法
B.a[4]的地址
C.5
D.3
相关考题:
有以下程序: main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"); printf("%d\n", strlen(p[4])); } 执行后输出结果是( )。A.2B.3C.4D.5
有以下程序: main( ) { char * p[10]={"abc","aabdfg","dcdbe","abbcf',"cd"}; printf("%d\n",strlen(p[4])); } 执行后的输出结果是 ______。A.2B.3C.4D.5
下面程序的输出结果是includemain(){int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("% 下面程序的输出结果是 #include<stdio.h> main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a; printf("%d\n",*p+9);}A.0B.1C.10D.9
以下程序的输出结果是【 】。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);}
下列程序舶输出结果是【 】。include main() {int a[5]={2,4,6,8,10},*p;p=a;p++;printf(" 下列程序舶输出结果是【 】。include <stdio.h>main(){int a[5]={2,4,6,8,10},*p;p=a;p++;printf("%d",*p);}
有以下程序 main( ) { char *p[10]={“abc”,”aabdfg”,”dcdbe”,”abbd”,”cd”}; printf(“%d\n”,strlen(p[4])); } 执行后输出结果是( )A.2B.3C.4D.5
下面程序的输出结果是includemain(){int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("% 下面程序的输出结果是 #include<stdio.h> main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a; printf("%d\n",*p+9);}A.0B.1C.10D.9
有以下程序:include include main(){char *p[10]={"abc","aabdfg","dcdbe" 有以下程序: #include <stdio.h> #include <string.h> main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"}; printf("%d\n",strlen(p[4])); } 执行后的输出结果是( )。A.2B.3C.4D.5
有以下程序 main() { char*p[10]={"abc",aabdfg","dedbe","abbd","cd"}; printf("%d\n",stxlen (p[4])); } 执行后输出结果是A.2B.3C.4D.5
以下程序的输出结果是【 】。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);}