Convert following infix expression to the prefix expression.
a - b + c * (d / e - (f + g))
Answer Posted / rodel
given-> a - b + c * (d / e - (f + g))
note: remember, before we do the infix expression to postfix expression.
We analyze the given data by using the hierarchy of operation (PEMDAS)
In that way, we can do the operation, tracing the hierarchy nos...
sample:
a - b + c * (d / e - (f + g))
5 6 4 2 3 1
pass1: a - b + c * (d / e - (f g +)) infix -> postfix
pass2: a - b + c * (d e / - f g +) infix -> postfix
pass3: a - b + c * (d e / - f g +) infix -> postfix
pass4: a - b + c * (d e / f g + - ) infix -> postfix
pass5: a b - + c d e / f g + - * infix -> postfix
pass6: a b - c + d e / f g + - * infix -> postfix -> Final Answer
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is ascending and descending order?
How can you insert a node to the beginning of a singly linked list?
List the abstract operations in the set?
What do you mean by external sorting?
Which is faster hashmap or linkedhashmap?
Difference between arrays and linked list?
How many sorting are there in data structure?
Can you sort a hashmap?
Define a right-skewed binary tree?
What is tree and its properties?
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
What is binary tree and its types?
What do you mean by general trees?
Does arraylist have a tostring?
Define non-linear data structures?