Here we have $3$ operators: brackets, conditional operators, and assignment operators. The precedence of operators is as follows:
- Brackets
- Conditional operator
- Assignment operator
So expression $i+=(f>3)?i\&2:5$ will be evaluvted :
The conditional operator first checks the condition if it is true $i\&2$ will be evaluated. if the condition is false then $5$ will be considered.
$(f>3)=11>3$, because it is relational operator it will gives either $0/1$. condition is true so it will execute $i\&2$ (bitwise and) and gives $2$ as output.
now our expression becomes $i+=2\implies i=i+2\implies i=3+2=5$
Option $(B)$ is correct.