单项选择题

有以下程序:
#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
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序 main() int a[3][3],*p,i; p=&a[0][0]; for(i=0;i<9;i++)p[i]=i; for(i=0;i<3;i++)printf( %d ,a[1][i]); 程序运行后的输出结果是______。
A) 0 1 2
B) 1 2 3
C) 2 3 4
D) 3 4 5
单项选择题
设有定义:int a=2,b=3,c=4;,则下列选项中值为0的表达式是( )。
A) (!a==1)&&(!b==0)
B) (a<b)&&!c‖1
C) a&&b

D) a‖(b+b)&&(c-a)
相关试题
  • 设有下列的程序段; char str[]= Hel...
  • 有以下程序: #include<stdio.h> fun...
  • 以下程序中,fun函数的功能是求3行4列二...
  • 以下程序的功能是:求出数组x中各相邻两个...
  • 以下程序的输出结果是 。 #include <s...