Flowchart of a program that will perform the following task:
-pop(s) { remove an item/element from the top of stack }
-push(s,i) { to add an element to the top of the stack }
-empty(s) { Determine if the stack is empty or not }
-stack top(s) Determine the top element of the stack }
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-22660.pdf
Comments
Leave a comment