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

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

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


参考答案

更多 “ 有下列程序: #includestdi0.h voidmain( ) {inta[]={1,2,3,4),y,*p=&a[3]; --p;y=*p;printf("y=%d\n",y); } 程序的运行结果是( )。A.y=0B.y=1C.y=2D.y=3 ” 相关考题
考题 有以下程序#include stdio.hmain( ){ int a[ ]={1,2,3,4},y,*p=a[3];--p; y=*p; printf("y=%d\n",y);}程序的运行结果是A)y=0B)y=1C)y=2D)y=3

考题 有以下程序includemain(){inta[]={1,2,3,4},y,*p=a[3];--p;y=*p;printf("y=%d\n" 有以下程序 #include <stdio.h> main() { int a[]={1,2,3,4},y,*p=a[3]; --p; y=*p;printf("y=%d\n",y); } 程序的运行结果是A.y=0B.y=1C.y=2D.y=3

考题 有下列程序: include main() {int a[]={1,2,3,4},y,*p=a[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=0B.y=1C.y=2D.y=3

考题 有以下程序#include stdio.hmain(){ int a[ ]={1,2,3,4},y,*p=a[3];--p; y=*p;printf("y=%d\n",y);}程序的运行结果是A.y=0B.y=1C.y=2D.y=3

考题 有下列程序: #includestdi0.h structord {intx,y;}dt[2]={1,2,3,4}; voidmain( ) {structord*p=dt; printf("%d,",++P-x);printf("%d,",++P -y); } 程序的运行结果是( ).A.1,2B.2,3C.3,4D.4,1

考题 有以下程序:includemain(){inta[]={1,2,3,4},y,*p=a[3];--p;y=*p;printf("y=%d\n 有以下程序: #include<stdio.h> main() {inta[]={1,2,3,4},y,*p=a[3]; --p;y=*p;printf("y=%d\n",y); } 程序的运行结果是( )。A.y=0B.y=1C.y=2D.y=3

考题 有以下程序:includemain(){int a[]={1,2,3,4},y,*p=--p;y=*p;printf("y=%d\n",y 有以下程序: #include<stdio.h> main() { int a[]={1,2,3,4},y,*p=&a[3]; --p;y=*p;printf("y=%d\n",y); } 程序的运行结果是( )。A.y=0B.y=1C.y=2D.y=3

考题 有以下程序includemain(){inta[]={1,2,3,4},y,*p=a[3]; --p;y=*p;printf("y=%d\n 有以下程序 #include <stdio.h> main() { int a[]={1,2,3,4},y,*p=a[3]; --p; y=*p;printf("y=%d\n",y); } 程序的运行结果是A.y=0B.y=1C.y=2D.y=3

考题 有以下程序片段 int a[ ]={1,2,3,4},y,*p=a[3]; --p; y=*p; printf("y=%dn",y); 程序的运行结果是A.y=0B.y=1C.y=2D.y=3