-
Which of these lines of code will give better performance?
1. p | 8 + r >> q & 10;
2. (p | ((( 8 * r) >> q ) & 10 ))
-
- 2 will give better performance as it has parentheses.
- Dependent on the computer system.
- 1 will give better performance as it has no parentheses.
- Both 1 & 2 will give equal performance.
- None of these
Correct Option: D
Parentheses do not degrade the performance of the program. Adding parentheses to reduce ambiguity does not negatively affect your system.