Show the content of a Stack S after performing the following sequence of operations: S.push(4), S.push(5), S.top(), S.push(6), S.pop(), S.push(S.Top())
Answers
Answered by
1
Answer:
[ 4 ]
[ 5 ]
[ 6 ]
pop () will erase/delete [ 6 ] from stack S
[ 4 ]
contents are [4,5,4]
hope this helps
Answered by
0
i hope this help you
please mark me as brainly
Attachments:
Similar questions