1. Suppose STACK is allocated N= 6 memory cells and initially STACK is empty or TOP=0. Find output of following program a. Set A:= 2 and B := 6 b. Call PUSH(STACK, A) c. Call PUSH(STACK,4) d. Call PUSH(STACK,B+2) e. Repeat while Top!= 0: Call(POP,ITEM) Write ITEM [End of Loop] f. Exit
Answers
Answered by
3
Answer:
Also, initially stack is empty. Find the output at the following module. 1. Set AAA: = 2 and BBB : = 5 2. Call PUSH (stack, AAA)
Similar questions