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
What header files do I need in order to define the standard library functions I use?
What is bubble sort technique in c?
Why does everyone say not to use scanf? What should I use instead?
Explain what is gets() function?
What is the best way to store flag values in a program?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is a global variable in c?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Explain what is a pragma?
What is gets() function?
What is a pointer on a pointer in c programming language?
Can the curly brackets { } be used to enclose a single line of code?
If errno contains a nonzero number, is there an error?
What are the standard predefined macros?
Is null equal to 0 in sql?