Which data structure is required to convert the infix to prefix notation?
Options
- A. Queue
- B. Stack
- C. Linked list
- D. More than one of the above
- E. None of the above
Quiz Practice:
B. Stack
Correct Answer: B. Stack
Explanation: A stack is commonly used for converting infix expressions into prefix notation.
Remember: Stack is used in infix-to-prefix and infix-to-postfix conversion algorithms.