单项选择题

如果进栈序列为A,B,C,D,则可能的出栈序列是( )。

A.C,A,D,B
B.B,D,C,A
C.C,D,A,B
D.任意顺序
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序段的输出结果是( )。 #include<stdio.h> main() char p[][4]= ABC , DEF , GHI ; int i; for(i=0;i<3;i++) puts(p[i]);
A.A
B
C
B.A D G
C.A B C
D E F
G H I
D.A B C
单项选择题
下列4个程序中,完全正确的是( )。
A.#include<stdio.h>
main();
(/*programming*/
printf("programming!\n");
B.# include<stdio.h>
main()
/*/programming/*/
printf("programming!\n");
C.#include<stdio.h>
main()
/*/programming*/*/
printf("programming!\n");)
D.include<stdio.h>
main()
/*programming*/
printf("programming!\n");
相关试题
  • 有以下程序: #include<stdio.h> int...
  • 设有一联合体变量定义如下: union data...
  • 有以下程序: #include<stdio.h> int...
  • 以下不正确的转义字符是( )。
  • 设函数中有整型变量a,为保证其在未赋初值...