单项选择题

若执行下面程序时从键盘上输入5,
main()
int x;
scanf("%d",&x);
if(x++>5)printf("%d\n",x);
else printf("%d\n",x-);
则输出是_______。

A.7
B.6
C.5
D.4
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序运行后,输出结果为_______。 main() int a[2][3]=1,3,5,7,9,11,*s[2],**pp,*p; s[0]=a[0],s[1]=a[1] pp=s; p=(int*)malloc(sizeof(int)); **pp=s[1][1]; p=*pp; printf( %d n ,*p);
A.1
B.7
C.9
D.11
单项选择题
以下程序的输出结果是_________。 #include<stdio.h #defineFUDGE(y) 2.84+y #define PR(
A.printf("%d",(int)(A) )
#definePRINT1(A) PR(A) ;putchar('\n')
main()
int x=2;
PRINT1
B.12
C.13
D.15
相关试题
  • 有以下程序,程序运行后的输出结果是___...
  • 若有程序: fun(int a,int B) stati...
  • 下面程序的输出是_______。 main(...
  • 有以下程序: #include<stdio.h> mai...
  • 以下程序的输出结果是_______。 #...