About 63,000 results
Open links in new tab
  1. What are bitwise shift (bit-shift) operators and how do they work?

    The Bitwise operators are used to perform operations a bit-level or to manipulate bits in different ways. The bitwise operations are found to be much faster and are some times used to improve the …

  2. bitwise operators - Difference between & and && in C? - Stack Overflow

    Initially C didn't have logical operators and the binary operators were used as a substitute. When the logical operators such as && and || were added to the C language, the precedence of binary …

  3. How to set, clear, and toggle a single bit - Stack Overflow

    Bit order, endianess, padding bits, padding bytes, various other alignment issues, implicit and explicit type conversions to and from a bit field, UB if int isn't used and so on. Instead, use bitwise-operators …

  4. Real world use cases of bitwise operators - Stack Overflow

    Bitwise operators are useful for looping arrays which length is power of 2. As many people mentioned, bitwise operators are extremely useful and are used in Flags, Graphics, Networking, Encryption.

  5. A Problem I faced using Bitwise Operators in C (HackerRank)

    Aug 5, 2022 · HackerRank Bitwise Operators In this challenge, you will use logical bitwise operators. All data is stored in its binary representation. The logical operators, and C language, use 1 to represent t...

  6. c - Are the results of bitwise operations on signed integers defined ...

    The result of the &, | and ^ operators is defined in terms of the bitwise representation of the values. Three possibilities are allowed for the representation of negative numbers in C: two's complement, …

  7. Bitwise OR and logical OR operators. What's the difference?

    Jun 21, 2013 · Is there any functional difference between logical and bitwise operators in the following code? What are the reasons to use one or another? typedef unsigned char BOOLEAN; void …

  8. c - How do I check if an integer is even or odd using bitwise operators ...

    Apr 18, 2011 · The & operator, when used on integers, returns an integer by definition. 8 & 1 will give 0 as a result. However, in C, an if statement will cast 0 to false, and any non-zero number to true.

  9. c - Implementing if - else if using bitwise operators - Stack Overflow

    Jun 2, 2013 · Implementing if - else if using bitwise operators Asked 12 years, 6 months ago Modified 11 years, 8 months ago Viewed 27k times

  10. c - How does this bitwise operation check for a power of 2? - Stack ...

    How does this bitwise operation check for a power of 2? Asked 16 years, 5 months ago Modified 10 months ago Viewed 127k times