Choose Better Performance

radha gogia

radha gogia

@radha-BTDzli Oct 25, 2024
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

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform