in DS recategorized by
3,720 views
3 votes
3 votes

Which of the following is not an inherent application of stack?

  1. Implementation of recursion
  2. Evaluation of  a postfix expression
  3. Job scheduling
  4. Reverse a string
in DS recategorized by
3.7k views

2 Answers

5 votes
5 votes
Best answer

Job scheduling is commonly done via queue data structure .

  1. Implementation of recursion :since for each funtion call stack is used to store its activation record.
  2. Evaluation of  a postfix expression : perfect exampe for stack data structure application push until operator not found.
  3. Reverse a string : simpe example for reverse any string : push all then pop all.

so c is answer

selected by
4 votes
4 votes
ans is C  rest are direct applications of stack
Answer:

Related questions