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 ? | 7 Yes | 3 No |
Post New Answer View All Answers
Explain what is the purpose of "extern" keyword in a function declaration?
What is a global variable in c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is the meaning of ?
What does sizeof return c?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
Does * p ++ increment p or what it points to?
What is output redirection?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Explain argument and its types.
Explain how can you check to see whether a symbol is defined?
What is dynamic variable in c?
write a program to find the given number is prime or not
What is the process to generate random numbers in c programming language?
write a progrmm in c language take user interface generate table using for loop?