What would be the Prefix notation for the given equation? [code]a|b&c[/code]

Trần Vũ

New member
What would be the Prefix notation for the given equation?
Code:
a|b&c
A. a|&bc
B. &|abc
C. |a&bc
D. ab&|c
 
Answer: c
Explanation: The order of preference of operators is as follows (descending): & |.
The equation a|b&c will be parenthesized as (a|(b&c)) for evaluation.
Therefore the equation for prefix notation evaluates to |a&bc.
 

Tìm kiếm

Back
Top