Sail E0 Webinar
Question

Which of these lines of code will give better performance?
1. a | 4 + c >> b & 7;
2. (a | ((( 4 * c ) >> b ) & 7 ))
Options:
A .  1 will give better performance as it has no parentheses.
B .  2 will give better performance as it has parentheses.
C .  Both 1 & 2 will give equal performance.
D .  Dependent on the computer system.
Answer: Option C

Parentheses do not degrade the performance of the program. Adding
parentheses to reduce ambiguity

does not negatively affect your system.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers