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


Please Help Members By Posting Answers For Below Questions

Explain what is the purpose of "extern" keyword in a function declaration?

624


What is a global variable in c?

591


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

614


What is the meaning of ?

623


What does sizeof return c?

608






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.....

1373


Does * p ++ increment p or what it points to?

619


What is output redirection?

695


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

914


Explain argument and its types.

607


Explain how can you check to see whether a symbol is defined?

664


What is dynamic variable in c?

568


write a program to find the given number is prime or not

3847


What is the process to generate random numbers in c programming language?

611


write a progrmm in c language take user interface generate table using for loop?

1575