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
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 | 4 No |
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 | 8 No |
main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }
2 Answers Vector, Vector India,
int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]
write the program for maximum of the following numbers? 122,198,290,71,143,325,98
How can I write a function that takes a format string and a variable number of arguments?
write a program to generate address labels using structures?
What is "Duff's Device"?
write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"
how to impliment 2 or more stacks in a single dimensional array ?
please send me the code for multiplying sparse matrix using c
main() { printf("hello%d",print("QUARK test?")); }
What are signals in C?
the format specified for hexa decimal is a.%d b.%o c.%x d.%u