What would be the Prefix notation for the given equation?
(a+(b/c)*(d^e)-f)
a) -+a*/^bcdef
b) -+a*/bc^def
c) -+a*b/c^def
d) -a+*/bc^def
Answer: b
Explanation: Reverse the equation or scan the equation from right to left. Apply the infix-prefix algorithm. The preference order in ascending order are as follows +*/^. Brackets have the highest priority. The equations inside the brackets are solved first.
Related Posts
The system is notified of a read or write operation by ___________
The advantage of I/O mapped devices to memory mapped is ___________
In intel’s IA-32 architecture there is a separate 16 bit address space for the I/O devices.
The usual BUS structure used to connect the I/O devices is ___________
In memory-mapped I/O ____________
The wrong statement regarding interrupts and subroutines among the following is/are ______
i) The sub-routine and interrupts have a return statement
ii) Both of them alter the content of the PC
iii) Both are software oriented
iv) Both can be initiated by the userThe most Flexible way of logging the return addresses of the subroutines is by using _______
Join The Discussion