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
What is arrays copyof?
Is array a collection?
What happens in insertion sort?
What is the Difference between treemap and hashmap?
Is an arraylist an object?
Which is better selection or bubble sort?
Define dynamic data structures?
What are the different binary tree traversal techniques?
How do you find the index of an element in an arraylist?
Is arraylist a list?
Which interfaces are implemented by linkedlist?
What are the major data structures used in the following areas : network data model & hierarchical data model?
How memory is reserved using a declaration statement in data structure?
How many types of linked list are there?
Is array a data type?