You are on page 1of 1

Lab Eval -6

Q1 Create a stack using linked list which can store fruit names, user can enter different fruit names, all are entered in stack but, when user enters fruit name "APPLE"pnly then pop 2 elements from the stack and push "MANGO", and print the final contents of stack.

Q2 Create a stack using linked list which can store positive as well as negative integers, enter the elements into the stack until the sum of elements of stack does not exceeds 50, after that pop the elements from the stack three times, and print the final contents of stack.

You might also like