CrazyEngineers
  • Choose Better Performance

    radha gogia

    Member

    Updated: Oct 25, 2024
    Views: 1.4K
    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
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Jayaram Reddy

    MemberDec 3, 2014

    b
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register