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. | The pop operation will require shifting of elements in the array but, push will not require any shifting of elements in the array. | |
| c. | Both push and pop operations will not require shifting of elements in the array. | |
| d. | 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
