var x = 5 & 1;
int i = 4; /* bit pattern equivalent is binary 100 */
int j = i << 2; /* makes it binary 10000, which multiplies the original number by 4 i.e. 16 */
! x
x & y
x && y
x | y
x || y
xor(x, y)
& | ~ << >> ~
int i = b << 4 + x; // Same as (b << 4) + x
1 & 0
(& 0xFF 0x1B)
& | ^ << >>
Languages with Bitwise Operators include JavaScript, C, Python, R, Lua, Chapel, C3, MoonBit, C2, Slope, Dale, Jule, SAKO, Speedie
Languages without Bitwise Operators include progsbase
View all concepts with or missing a hasBitWiseOperators measurement
Read more about Bitwise Operators on the web: 1. 2.