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

How to write the code of the program to swap two numbers with in one statement?

2 Answers  


How can I increase the allowable number of simultaneously open files?

1 Answers   CSC,


What is macro?

5 Answers   IBM,


what is the use of macro program

1 Answers   TCS,


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

0 Answers  






the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

2 Answers   Ignou,


How can I read in an object file and jump to locations in it?

0 Answers  


why array index always starts from zero??

4 Answers   TCS,


what is the little endian and big endian?

1 Answers  


main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }

2 Answers  


What is a built-in function in C?

1 Answers  


what is the c.

3 Answers   IBM, TCS,


Categories