填空题

按“先进后出”原则组织数据的数据结构是______。

【参考答案】

栈
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: void swapl(int c0[],int c1[]) int t; t=c0[0];c0[0]=c1[0];c1[0]=t; void swap2(int*c0,int*c1) int t; t=*c0;*c0=*c1;*c1=t; main() int a[2]=3,5),b[2]=3,5; swapl(a,a+1);swap2(&b[0],&b[1]); printf( %d%d%d%d n ,a[0],a[1],b[0],b[1]); 程序运行后的输出结果是______。
A.3 5 5 3
B.5 3 3 5
C.3 5 3 5
D.5 3 5 3
单项选择题
有以下程序: #include<stdio.h> #include<string.h> #include void f(char*s,char*t) char k; k=*s; *s=*t; *t=k; s++;t--; if(*s)f(s,t): main() char str[10]= abcdefg ,*P; P=str+strlen(str) 2+1: f(p,p-2); printf( %s n ,str); 程序运行后的输出结果是______。
A.abcdefg
B.gfedcba
C.gbcdefa
D.abedcfg
相关试题
  • 以下程序中函数fun的功能是:构成一个如图...
  • 以下程序的输出结果是______。 #in...
  • 以下程序的输出结果是______。 #in...
  • 设有定义语句:int a[][3]=0,1,...
  • 以下程序的输出结果是______。 #in...