wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

The postfix expression for the infix expression A + B * (C + D) / F + D * E is

A
A * B + CD/F * DE ++
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
ABCD + *F/ + DE* ++
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
AB + CD + *F/D + E*
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
A + *BCD/F* DE ++
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B ABCD + *F/ + DE* ++
PUSH one by one element into Stack and POP according to desired output. Only second option can satisfy.

flag
Suggest Corrections
thumbs-up
22
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
The Number Line
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon