Question: If we always keep the top element of ArrayStack in the array theData in location 0, then: A Both push and pop operations will require

If we always keep the top element of ArrayStack in the array theData in location 0, then: A Both push and pop operations will require shifting of elements in the array. B Both push and pop operations will not require shifting of elements in the array. The pop operation will require shifting of elements in the array but, push will not require any shifting of elements in the array. The push operation will require shifting of elements in the array but, pop will not require any shifting of elements in the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
