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 the scope of local variable in c?
What is unary operator?
Can include files be nested? How many levels deep can include files be nested?
What is define c?
What is union and structure in c?
How does free() know explain how much memory to release?
How many loops are there in c?
C language questions for civil engineering
Explain what are preprocessor directives?
Why does not c have an exponentiation operator?
What are integer variable, floating-point variable and character variable?
What is the difference between class and object in c?
What is dangling pointer in c?
Explain the use of 'auto' keyword in c programming?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()