Convert the following expression to postfix and prefix
X $ Y Z - M + N + P / Q / (R + S)
Answer Posted / test
postfix
Z-M+N+P/Q/(R+S)
z-m-n+p/q/rs+
z-m-n+pq//rs+
z-m-n+pq/rs+/
zm- -n+pq/rs+/
zm-n- +pq/rs+/
zm-n-pq/rs+/+
prefix
Z-M+N+P/Q/(R+S)
z-m+n+p/q/+(rs)
z-m+n+//pq+(rs)
-zm+n+//pq+(rs)
+-zmn+//pq+(rs)
++-zmn//pq+(rs)
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
What is header file in c?
What is the meaning of typedef struct in c?
Is struct oop?
What are the difference between a free-standing and a hosted environment?
c program to compute AREA under integral
What is pre-emptive data structure and explain it with example?
What is the difference between procedural and functional programming?
Explain that why C is procedural?
What is structure padding in c?
Explain what is the best way to comment out a section of code that contains comments?
Explain the process of converting a Tree into a Binary Tree.
What does int main () mean?
How is a null pointer different from a dangling pointer?
Explain about block scope in c?
What is wrong in this statement?