單項(xiàng)選擇題

順序棧s,棧頂指針是top指向棧頂元素,要入棧的元素是e,則入棧正確的是()

A.s[++top]=e;
B.e=s[top--];
C.s[--top]=e;
D.e=s[++top];

微信掃碼免費(fèi)搜題