x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

Stack implements LIFO (last in first out ). Whenever it is necessary to last item to be processed first, then stack will be used. 

                Applications of stack are 

  • Stack is used to reverse the string. 
  •  a)  to  convert from infix to prefix and vice versa.

             b) to convert from infix  to postfix and vice versa. 

  • Stack is used in evaluation of prefix and postfix expressions. 
  • It is used in recursion. 
  • It is also used in function call mechanism. 
  • It is used in implementation of Tower of hanaii. 
  • It is used to check for balanced parentheses in an expression. 
  • It is used in undo mechanism in an editor. 
  • It is used in DFS, backtracking and parsing etc. 

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer