Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3674590
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:52:23+00:00 2026-05-19T02:52:23+00:00

In the C programing language, why do the bitwise operators (& and |) have

  • 0

In the C programing language, why do the bitwise operators (& and |) have lower precedence than the equality operator (==)? It does not make sense to me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:52:24+00:00Added an answer on May 19, 2026 at 2:52 am

    You need to ask Brian Kernighan or Dennis Ritchie.
    From this forum: http://bytes.com/topic/c/answers/167377-operator-precedence

    The && and || operators were added later
    for their “short-circuiting” behavior. Dennis Ritchie admits in
    retrospect that the precedence of the bitwise operators should have
    been changed when the logical operators were added. But with several
    hundred kilobytes of C source code in existence at that point and an
    installed base of three computers, Dennis thought it would be too big
    of a change in the C language…

    So, that might be a reason? I’m guessing since there are several layers of bitwise precendence (unlike relational comparisons) that it’s cruft that’s existed since…forever…and just was never corrected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the operator below ^ ? When to use it? My programing language
I started programing in language C, and I have some problems with reading text
Is there any jquery Plugin:1.which can identify a programing language and highlight its syntax.
I quickly wrote an interpreter for some sort of experimental programing language i came
What the programing language can send http post or get from client in web
i using ruby on rails programing language for the making a very simple project
Is there any Microsoft API for parallel programing in C language ? thanks for
Possible Duplicate: What USEFUL bitwise operator code tricks should a developer know about? Hi,
What programming language is used to make iPod Touch apps? Will you tell me
In programming language like C#, java if a condition has multiple expressions with AND(&&)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.