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 typedef?
Why static is used in c?
What is the difference between exit() and _exit() function in c?
What is extern c used for?
How can you find out how much memory is available?
Explain what is the benefit of using #define to declare a constant?
Explain what is the benefit of using const for declaring constants?
Is c still used?
What are the ways to a null pointer can use in c programming language?
What is #line used for?
Do you know pointer in c?
Explain how can I convert a string to a number?
Write a program to reverse a linked list in c.
Which node is more powerful and can handle local information processing or graphics processing?
What's the total generic pointer type?