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 are the two types of structure?
Explain what happens if you free a pointer twice?
Difference between Function to pointer and pointer to function
What is typedef?
Difference between MAC vs. IP Addressing
What is nested structure in c?
List the difference between a "copy constructor" and a "assignment operator"?
code for quick sort?
What is the purpose of the statement: strcat (S2, S1)?
write a program to print largest number of each row of a 2D array
How is a macro different from a function?
Is return a keyword in c?
What is the use of printf() and scanf() functions?
How do we make a global variable accessible across files? Explain the extern keyword?
What is a structure member in c?