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 ? | 9 Yes | 4 No |
Post New Answer View All Answers
How do you use a 'Local Block'?
What are the different types of errors?
Is c++ based on c?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is the difference between union and structure in c?
How do I swap bytes?
What is s in c?
what will be the output for the following main() { printf("hi" "hello"); }
What does void main () mean?
What is a loop?
hi send me sample aptitude papers of cts?
What is difference between far and near pointers?
How do you define a function?
How can you find out how much memory is available?
What is binary tree in c?