python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Bit flags operation
I am going through some format spec and I am encountering the following:
if (flags & 1) {
...
}
Now, according to the same documentation flags is:
so the flags is 3 bytes. The operation flags ...
Tarta
Votes: 0
Answers: 1
why I am getting 'NaN' for '&' operator?
I am not able to understand why I am getting this "NaN" while performing AND-Bitwise operator for some numbers only? please see pic I attached to understand My issue clearly.
'use strict...
srinivas
Votes: 0
Answers: 1
bitwise operations with c++11 enums
I have this c++11 class which contains a variety of enums. These enums contain bitmasks which eventual all get combined together into an 8-bit values using bitwise operators.
It looks like this:
class...
scottc11
Votes: 0
Answers: 1
let x = (0&0xFFFFFFFF) + ~0 +1 , what is the value of x?
I'm working on a c bit homework, for one of the questions it is asking me to implement logical negation without using '!'; this is what I came up with:
`
(0 & 0xFFFFFFFF) // S1: 0s & ones sho...
Lan
Votes: 0
Answers: 3