Convert the following expression to postfix and prefix
X $ Y Z - M + N + P / Q / (R + S)

Answers were Sorted based on User's Feedback



Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S) ..

Answer / 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 3 No

Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S) ..

Answer / 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 7 No

Post New Answer

More C Interview Questions

Define function ?Explain about arguments?

2 Answers   Geometric Software, Infosys,


What are the two types of functions in c?

0 Answers  


write a program in c to read array check element is present or not?

1 Answers  


What are keywords c?

0 Answers  


write a c program to find largest number in matrix(in each row,each column, diagonally, and in the whole matrix)? Its urgent.

2 Answers  






How can you access memory located at a certain address?

0 Answers  


what is the difference between static variable and register variable?

3 Answers  


What are the features of c language?

0 Answers  


What is getche() function?

0 Answers  


What is the best way to store flag values in a program?

0 Answers  


Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.

1 Answers  


Tell me when would you use a pointer to a function?

0 Answers  


Categories