以下程序的输出结果是 ( ) main( ) { int a [10] = {1,2,3,4,5,6,7,8,9,10,},*p=a; printf("%d\n",* (p+2)); }A.3B.4C.1D.2

以下程序的输出结果是 ( ) main( ) { int a [10] = {1,2,3,4,5,6,7,8,9,10,},*p=a; printf("%d\n",* (p+2)); }

A.3

B.4

C.1

D.2


相关考题:

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

有以下程序: main() {int a[10]={1,2, 3,4,5,6,7,8,9,10},*p=a[3],*q=p+2; printf("%d\n",*p+*q); } 程序运行后的输出结果是 ______。A.16B.10C.8D.6

有以下程序: void sum(int * a) {a[0]=a[1];} main() { int aa[10]={1,2,3,4,5,6,7,8,9,10},i; for(i=1;i>0;i--)sum(aa[i]); print("%d\n",aa[0]); } 程序运行后的输出结果是 ______。A.4B.3C.2D.1

有以下程序main(){ int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a[3],*q=p+2;printf("%d\n",*p+*q);}程序运行后的输出结果是

有以下程序: main() {int a=[10]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, *p=a[3], *q=p+2; printf("% d\n", *p+*q); } 程序运行后的输出结果是______。A.16B.10C.8D.6

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

以下程序的输出结果是( )。 include void swap(int*a,int*B){int*t; t=a;a=b;b=c;} main 以下程序的输出结果是( )。 include<stdio.h> void swap(int*a,int*B){int*t; t=a;a=b;b=c;} main() {int i=3,j=5,*p=i,*q=j; swap(p,q);printf("%d %d\n",*p,*q); }

试题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