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

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

若有以下的说明和语句: int t[3][3],*pt[3],k; for(k=0;k<3;k++) pt[k]=&t[k][0];则在执行for语句后,*(*(pt+1)+2)表示的数组元素是______。

A.t[2][0]

B.t[2][2]

C.t[1][2]

D.t[2][1]


参考答案

更多 “ 若有以下的说明和语句: int t[3][3],*pt[3],k; for(k=0;k<3;k++) pt[k]=t[k][0];则在执行for语句后,*(*(pt+1)+2)表示的数组元素是______。A.t[2][0]B.t[2][2]C.t[1][2]D.t[2][1] ” 相关考题
考题 若有以下的说明和语句,则在执行for语句后,*(* pt+1)+2)表示的数组元素是 ( ) int t[3] [3],*pt[3],k; for(k=0;k<3;k+ +)pt[k]=&t[k] [0];A.t[2] [0]B.t[2] [2]C.t[1] [2]D.t[2] [1]

考题 下面程序输出的是( )。 main { int t=l;fun(fun(t));} fun(int h) { static int a[3]={1.2.3}; int k; for(k=0;k3;k++)a[k]+=a[k]-h; for(k=0;k3;k++)printf("%d",a[k]); printf("\n"); return(a[h]);}A.1,2,3, 1,5,9,B.1,3,5, 1,3,j,C.1,3,5, 0,4,8,D.1,3。5, -1,3,7,

考题 若有以下的说明和语句,则在执行for语句后,’(*(pt+1)+2)表示的数组元素是( )。 int t[3][3],*pt[3],k;for(k=0;k3;k++)pt[k]= &t[k][0];A.t[2][0]B.t[2][2]C.t[1][2]D.t[2][1]

考题 下面程序输出的是( )。main{ int t=l;fun(fun(t));}fun(int h){ static int a[3]={1.2.3};int k;for(k=0;k3;k++)a[k]+=a[k]-h;for(k=0;k3;k++)printf(%d,a[k]);printf(\n);return(a[h]);}A.A.1,2,3, 1,5,9,B.1,3,5, 1,3,j,C.1,3,5, 0,4,8,D.1,3。5, -1,3,7,

考题 下列程序的运行结果是( )。 #includestdio.h void fun(int*S,int*p) { static int t=3: *p=s[t]; t--; } void main { int a[]={2,3,4,5),k; int x; for(k=0,k4,k++) { fun(a,&x); printf("%d,",x); } }A.5,4,3,2B.2,3,4,5C.2,2,2,2D.5,5,5,5

考题 若有以下的说明和语句,则在执行for语句后,*(*(pt+1)+2)表示的数组元素是( )。 int t[3][3],*Pt[3],k; for(k=0;k<3;k++) pt[k]=t[k][0];A.t[2][0]B.t[2][2]C.t[1][2]D.t[2][1]

考题 下列程序的运行结果是( )。#includestdio.hvoid fun(int*S,int*p){ static int t=3:*p=s[t];t--;}void main{ int a[]={2,3,4,5),k;int x;for(k=0,k4,k++){ fun(a,&x);printf(%d,,x);}}A.A.5,4,3,2B.2,3,4,5C.2,2,2,2D.5,5,5,5

考题 若有以下的说明和语句,则在执行for语句后,*(*(pt+1)+2)表示的数组元素是______。 int t[3][3], *pt[3], k; for(k=0; k<3 k++) pt[k]=t[k][0]A.t[2][0]B.t[2][2]C.t[1][2]D.t[2][1]

考题 若有以下的说明和语句,则在执行for语句后,*(*(pt+l)+2)表示的数组元素是 int t[3][3], *pt([3], k; for (k=0;k<3;k++) pt[k]=t[k][0];>A.t[2][0]B.t[2][2]C.t[l][2]D.t[2][l]