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 ? | 7 Yes | 3 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 | 7 No |
Why should I prototype a function?
#include<stdio.h> void main() { int a=5,b=6,c; int x=(a<b)+7; int y=(x==7)*9; int z=(c=x+y)*2; printf("%h %h %h",x,y,z); } What is the output? Explain it.
Explain logical errors? Compare with syntax errors.
Explain union.
How can I find out how much free space is available on disk?
Find the highest of three numbers and print them using ascending orders?
Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā%cā, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.
1 Answers BladeLogic, Infosys,
write a proram to reverse the string using switch case?
What library is sizeof in c?
Linked lists -- can you tell me how to check whether a linked list is circular?
whats the use of header file in c?
Hi Every one...........I have been selected for the SBI Clerk. But i m one month Pregnanat. So anyone please suggest me, is they take any objection on my joining .
4 Answers State Bank Of India SBI,