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
Which is the parent class of linkedlist class?
Why null is allowed in hashmap?
How many types of priority queue are there?
Write the c program to insert a node in circular singly list at the beginning.
Why do we need to recycle?
For which header list, the last node contains the null pointer?
Explain the internal working of a hash map?
What is the advantage of circular linked list?
What are different techniques for making hash function?
Define an algorithm. What are the properties of an algorithm?
What is bubble sort?
What is worst case complexity algorithm?
What do you mean by hash table?
Can list contain null values?
Can hashmap be sorted?