Q. Which of these lines of code will give better performance?

Code:
 1. p | 8 + r >> q & 10; 
 2. (p | ((( 8 * r) >> q ) & 10 ))
  • (A) 2 will give better performance as it has parentheses.
  • (B) Dependent on the computer system.
  • (C) 1 will give better performance as it has no parentheses.
  • (D) Both 1 & 2 will give equal performance.
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both 1 & 2 will give equal performance.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
263
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Prabhas Kapoor
Publisher
πŸ“ˆ
84%
Success Rate