• 2022-06-09
    若栈s中,规定初始栈顶指针s->top设为Maxsize,那么对栈s进行元素x的进栈操作,下述正确的是()
    A: s->top++; s->data[s->top]=x;
    B: s->data[s->top]=x; s->top++;
    C: s->top--; s->data[s->top]=x;
    D: s->data[s->top]=x; s->top--;