以下程序的输出结果是______。 main() { char a[10]={'1','2','3','4','5','6','7','8','9'},*p; int i;i=8;p=a+i; printf("%s\n",p-2); }A.6B.789C.'6'D.6789
以下程序的输出结果是______。 main() { char a[10]={'1','2','3','4','5','6','7','8','9'},*p; int i;i=8;p=a+i; printf("%s\n",p-2); }
A.6
B.789
C.'6'
D.6789
相关考题:
有以下程序:includcstdio.hvoid fun(int *p){printf(%d\n,p[5]);}main( ){int a[10]={1,2,3,4,5,6,7,8,9,10};fun(a[3]);}程序运行后的输出结果是( )。A.5B.6C.8D.9
以下程序的输出结果是 () include int a [3] [3]={1,2,3,4,5,6,7,8,9},*p; main() 以下程序的输出结果是 ( ) #include<stdlib.h> int a [3] [3]={1,2,3,4,5,6,7,8,9},*p; main( ) { p=(int *)malloc(sizeof(int)); f(p,a); printf("%d\n",*p); } f(int *s,intp[][3]) { *s=p[1][1]; }A.1B.4C.7D.5
以下程序的输出结果是includeint a[3][3]={1,2,3,4,5,6,7,8,9,},*p;main(){p=(int*)ma 以下程序的输出结果是 #include<stdio.h> int a[3][3]={1,2,3,4,5,6,7,8,9,},*p; main() { p=(int*)malloc(sizeof(int)); f(p,a); printf("%d\n",*p); free(p);} f(int *s, int p[][3]) { *s=p[1][1];}A.1B.4C.7D.5
以下程序的输出结果是includeint a[3][3]={1,2,3,4,5,6,7,8,9,},*p;main(){p=(int*)ma 以下程序的输出结果是 #include<stdio.h> int a[3][3]={1,2,3,4,5,6,7,8,9,},*p; main() { p=(int*)malloc(sizeof(int)); f(p,a); printf("%d\n”,*p); free(p);} f(int *s,intp [][3]) { *s=p[1][1];}A.1B.4C.7D.5
有以下程序:includemain(){int.a[]={1,2,3,4,5,6,7,8,9,10,11,12,},*p=a+5,*q=NULL;*q 有以下程序: #include <stdio.h> main() {int.a[]={1,2,3,4,5,6,7,8,9,10,11,12,},*p=a+5,*q=NULL; *q=*(p+5); printf("%d %d\n",*p,*q); } 程序运行后的输出结果是( )。A.运行后报错B.6 6C.6 11D.5 10
以下程序的输出结果是#includeint a[3][3]={1,2,3,4,5,6,7,8,9,},*p;main( ){ p=(int *)malloc(sized(int));f(p,a) ;printf("%d\n",*p);free(p);}f(int *s,int p[ ][3]){ *s=p[1][1];}A.1B.4C.7D.5
以下程序的输出结果是#includestdio.hint a[3][3]={1,2,3,4,5,6,7,8,9,},*p;main(){ p=(int*)malloc(sizeof(int));f(p,a);printf("%d\n",*p);free(p); }f(int *s, int p[][3]){ *s=p[1][1];}A.1B.4C.7D.5
有以下程序#includestdio.hvoid fun(int*p){printf("%d\n",p[5]);}main(){ int a[10]={1,2,3,4,5,6,7,8,9,10};fun(a[3]);}程序运行后的输出结果是A.5B.6C.8D.9
有以下程序: #includcstdio.h void fun(int *p) {printf("%d\n",p[5]);} main( ) {int a[10]={1,2,3,4,5,6,7,8,9,10}; fun(a[3]); } 程序运行后的输出结果是( )。A.5B.6C.8D.9
试题27有以下程序#include stdio.hvoid fun(int *p){ printf(“%d\n”,p[5]);}main(){ int a[10]={1,2,3,4,5,6,7,8,9,10};fun(a[3]);}程序运行后的输出结果是()A.5B.6C.8D.9