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 is structure of data type?
What is the difference between 1d and 2d array?
Which is faster treemap or hashmap?
How do you do binary search?
Can treemap have duplicate values?
Difference between calloc and malloc ?
What is the purpose of thread?
Can arraylist store int?
In what areas do data structures are applied?
Is array static or dynamic?
Write the c program to insert a node in circular singly list at the beginning.
What do you mean by data and data structure?
What is difference between arraylist and linkedlist?
What thread means?
What is a directed graph?