897 views

2 Answers

Best answer
4 votes
4 votes
Infix expression: A + B

prefix expression of above infix operation : +AB

similarly,

(A - B^C + H)*D + E^5

(A - (^BC) + H)*D + (^E5)

since  + and - are of same priority so follow left to right associativity

((-A^BC) + H)*D + (^E5)

(+-A^BCH)*D +(^E5)

(*+-A^BCHD) + (^E5)

+*+-A^BCHD^E5
selected by

Related questions

0 votes
0 votes
0 answers
2
1 votes
1 votes
0 answers
3
Meenakshi Sharma asked Nov 13, 2016
345 views
–1 votes
–1 votes
0 answers
4
Srishti Raj asked Sep 17, 2016
485 views
Tried solving 68.used infix to prefix but result wasn't any of the options. Can somebody help me please