Choose Better Performance
Which of these lines of code will give better performance?
1. a | 4 + c >> b & 7;
2. (a | ((( 4 + c ) >> b ) & 7 ))
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
1. a | 4 + c >> b & 7;
2. (a | ((( 4 + c ) >> b ) & 7 ))
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
0