在单链表指针为p的结点之后插入指针为s的结点,正确的操作是( )
(A)p->next=s;s->next=p->next;
(B)s->next=p->next;p->next=s;
(C)p->next=s;p->next=s->next;
(D)p->next=s->next;p->next=s;
参考答案
继续答题:下一题
更多数据结构试题
- 1线程是最小的拥有资源的单位。
- 2软件配置管理中,每一项配置变更都要在配置状态报告中进行详细的记录。配置状态报告的信息流如下图所示,图中①②③处分别是()。
- 3请求分页存储管理中,页面置换算法很多,但只有最佳置换算法能完全避 免进程的抖动,因此目前应用最关。其他(如改进型 CLOCK)算法虽然也能避免进 程的抖动,但其效率一般很低。
- 4执行完下列语句段后,i值为:( )Int f(int x){int y; y=((x>0)?x*f(x-1):2); printf(“%d”,y); return y;}Int i;I=f(f(1));
- 5某计算机系统的可靠性结构如下所示,若所构成系统的每个部件的可靠度分别为R1、R2、R3和R4,则该系统的可靠度为( )。在这里插入图片描述
- 6嵌入式系统初始化过程主要有3个环节,按照自底向上、从硬件到软件的次序依次为()。