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

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

有以下程序

#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


参考答案

更多 “ 有以下程序#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 ” 相关考题
考题 有以下程序#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 main() {int a[] = {2,4,6,8,10} ,y =0,x, * p;p =a[1];for( 有以下程序: #include <stdio.h> main() { int a[] = {2,4,6,8,10} ,y =0,x, * p; p =a[1]; for(x=1;x<3;x++)y+ =p[x]; printf( "% d \n" , y); }程序运行后的输出结果是( )。A.10B.11C.14D.15

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

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