Convert following infix expression to the prefix expression.
a - b + c * (d / e - (f + g))
Answer Posted / piyush kumar
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
=X+Y where X=-ab,c*V=Y
=+XY
=+-abc*V
=+-abc*-TS
=+-abc*-/de+fg
| Is This Answer Correct ? | 3 Yes | 16 No |
Post New Answer View All Answers
What will happen if an array goes out of bounds?
What are the disadvantages of representing a stack or queue by a linked list?
What is a list in data structure?
List the data structures which are used in rdbms, network data modal, and hierarchical data model.
List the differences between comparable and comparator interface?
What is arrays copyof?
What is the difference between hashset and linkedhashset?
Why it is important to have aligned addresses? What is the exception generated when there is a misaligned address?
What do you mean by Logical Error
Which interfaces are implemented by hashmap?
What is difference between data type and data structure?
Draw the B-tree of order 3 created by inserting the following data arriving in sequence – 92 24 6 7 11 8 22 4 5 16 19 20 78
Define 2-3 tree?
How do you sort in ascending order in arraylist?
Is int a data structure?