Convert following infix expression to the prefix expression.
a - b + c * (d / e - (f + g))
Answer Posted / elle
a-b+c*(d/e-(f+g))
=a-b+c*(/de-(+fg))
=a-b+c*(T-S) where T=/de,S=+fg
=a-b+c*-(TS)
=-ab+c*-(TS)
=-ab+c*V where V=-TS
=-ab+*cV
=X+Y where X=-ab,*cV=Y
=+XY
=+-ab*cV
=+-ab*c-TS
=+-ab*c-/de+fg
| Is This Answer Correct ? | 41 Yes | 7 No |
Post New Answer View All Answers
Which interfaces are implemented by linkedlist?
How to create an Array?
What is the difference between list, set and map?
Can we put null key in hashmap?
Define probing?
How many passes does bubble sort need?
What are the drawbacks of array implementation of queue?
Which of the collections allows null as the key?
What is the difference between dictionary and hashtable?
What does map stand for?
What do you mean by Runtime Error
What is a static structure?
Define right-in threaded tree?
What are the disadvantages of circular list?
Define secondary clustering?