Answer: 80
General rules –
Operators which are deeper in the parse tree will have higher precedence, since they are tried by parser first.
Left-recursive rules indicates left associativity
Right-recursive rules indicates right associativity
---------
In the question –
$\#$ has corresponding operation: $*$
$\%$ has corresponding operation: $\div$
$*$ and $\div$ both are left associative and $\div$ is having higher precedence.
$20\#10\%5\#8\%2\%2 $
$\equiv20∗(10÷5)∗((8÷2)÷2) $
$\equiv 20∗2∗2 \\
= 80$