Advertisements
Advertisements
प्रश्न
Write an algorithm to implement push operation.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
- Start.
- Initialize
topwith -1. - Input the new element.
- Increment
topby 1. - Store the element at
stack[top]. - Print
Item Inserted. - Stop.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
