有下列程序: #include<stdi0.h> voidmain( ) {inta[]={1,2,3,4),y,*p=&a[3]; --p;y=*p;printf("y=%d\n",y); } 程序的运行结果是( )。
A.y=0
B.y=1
C.y=2
D.y=3
第1题:
有以下程序片段 int a[ ]={1,2,3,4},y,*p=&a[3]; --p; y=*p; printf("y=%dn",y); 程序的运行结果是
A.y=0
B.y=1
C.y=2
D.y=3
第2题:
有以下程序 #include <stdio.h> main() { int a[]={1,2,3,4},y,*p=&a[3]; --p; y=*p;printf("y=%d\n",y); } 程序的运行结果是
A.y=0
B.y=1
C.y=2
D.y=3
第3题:
有以下程序: #include<stdio.h> main() { int a[]={1,2,3,4},y,*p=&a[3]; --p;y=*p;printf("y=%d\n",y); } 程序的运行结果是( )。
A.y=0
B.y=1
C.y=2
D.y=3
第4题:
有以下程序: #include<stdio.h> main() {inta[]={1,2,3,4},y,*p=&a[3]; --p;y=*p;printf("y=%d\n",y); } 程序的运行结果是( )。
A.y=0
B.y=1
C.y=2
D.y=3
第5题:
有下列程序: #include<stdi0.h> structord {intx,y;}dt[2]={1,2,3,4}; voidmain( ) {structord*p=dt; printf("%d,",++P->x);printf("%d,",++P ->y); } 程序的运行结果是( ).
A.1,2
B.2,3
C.3,4
D.4,1
第6题:
有以下程序
#include <stdio.h>
main()
{ int a[ ]={1,2,3,4},y,*p=&a[3];
--p; y=*p;printf("y=%d\n",y);
}
程序的运行结果是
A.y=0
B.y=1
C.y=2
D.y=3
第7题:
有下列程序: #include <stdio.h> main() {int a[]={1,2,3,4},y,*p=&a[3]; --p; y=*p; printf("y=%d\n",y); } 程序的运行结果是( )。
A.y=0
B.y=1
C.y=2
D.y=3
第8题:
有以下程序 #include <stdio.h> main() { int a[]={1,2,3,4},y,*p=&a[3]; --p; y=*p;printf("y=%d\n",y); } 程序的运行结果是
A.y=0
B.y=1
C.y=2
D.y=3
第9题:
有以下程序
#include <stdio.h>
main( )
{ int a[ ]={1,2,3,4},y,*p=&a[3];
--p; y=*p; printf("y=%d\n",y);
}
程序的运行结果是
A)y=0
B)y=1
C)y=2
D)y=3