問題詳情
Question set Il
Suppose we have a stack for storing integers. Initially, the stack is empty. We perform 10 operations
push(1),push(2), pop(), push(3),pop(), pop(),push(4), push(5), push(6), and pop(). Please answer the
following questions.
【題組】6.We use an array A of 10 elements to implement the stack. Which one is true for declaring the arrayin C?
(A) integer A:10;
(B) integer A[0,9];
(C)integer A[1, 10];
(D) integer A[10].
參考答案
答案:[無官方正解]
難度:計算中-1
書單:沒有書單,新增