题海让大学四年没有难题
白天模式登陆

题目详情

单选题 下面程序段的功能实现数据x进栈,要求在下划线处填上正确的语句.#define M 100typedef struct {int a[M]; int top;} sqstack;void push(sqstack &s,int x){if (s.top==M) return;____________________;}

A. s.a[s.top++]=x

B. s.a[s.top]=x

C. s.a[++s.top]=x

D. s.a[top++]=x

数据结构课程封面

学科:数据结构

时间:2026-05-18 07:36:25

Copyright © 2022 津ICP备2021001502号