Consider a Stack with TOP=3 |
Diksha, Reena, Bhawna, Teena |
What will be the value of TOP when "Teena" is deleted from the stack. |
A) 5
B) 2
C) 4
D) None of the above
Correct Answer: B
Solution :
[b] At starting the value of TOP is 3 and when you delete 1 element i.e. Teena, then it will decrement by 1. So, the final value of TOP is 2You need to login to perform this action.
You will be redirected in
3 sec