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 to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Which is better malloc or calloc?
What is a stream in c programming?
What are the similarities between c and 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.
How to throw some light on the b tree?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What is main () in c language?
Explain how are portions of a program disabled in demo versions?
Is c procedural or object oriented?
How can you allocate arrays or structures bigger than 64K?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Why can’t we compare structures?
Why we write conio h in c?
What does *p++ do?