Page 1 of 1

2. [5] What is the output of the following stack algorithm? Push (myStack, 'Jack') Push (myStack, Jose') Push (myStack,

Posted: Sun Jul 03, 2022 12:00 pm
by answerhappygod
2 5 What Is The Output Of The Following Stack Algorithm Push Mystack Jack Push Mystack Jose Push Mystack 1
2 5 What Is The Output Of The Following Stack Algorithm Push Mystack Jack Push Mystack Jose Push Mystack 1 (21.2 KiB) Viewed 22 times
2. [5] What is the output of the following stack algorithm? Push (myStack, 'Jack') Push (myStack, Jose') Push (myStack, 'Ali') Push(myStack, 'Mike') Pop (myStack, name) Write name + ", " Pop (myStack, name) Push(myStack, name) Push (myStack, name) Push (myStack, 'Harman') WHILE (NOT IsEmtpy (myStack)) Pop (myStack, name) Write name + END WHILE 1