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 ? | 9 Yes | 4 No |
Post New Answer View All Answers
How do I read the arrow keys? What about function keys?
What is the data segment that is followed by c?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is wrong in this statement? scanf(ā%dā,whatnumber);
What is the difference between text and binary modes?
How do you generate random numbers in C?
What are reserved words?
How to find a missed value, if you want to store 100 values in a 99 sized array?
Write a program to find factorial of a number using recursive function.
Write a program to print "hello world" without using a semicolon?
What is ctrl c called?
Is c is a procedural language?
How can I convert a number to a string?
In a switch statement, what will happen if a break statement is omitted?
Difference between MAC vs. IP Addressing