Flipping bits

  • + 0 comments

    C++:

    long flippingBits(long n) {
        return (uint32_t)~n;
    }