PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Bitwise Operators

< >
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 */
Example from Python, Cython:
x << y
Example from R:
! x x & y x && y x | y x || y xor(x, y)
Example from C3:
int i = b << 4 + x; // Same as (b << 4) + x
Example from Slope:
(& 0xFF 0x1B)
Example from Jule:
& | ^ << >>

Languages with Bitwise Operators include JavaScript, C, Python, C++, R, TypeScript, Objective-C, Cython, C3, Slope, Jule, C2, Dale, Tick C, cooC, Real-Time Concurrent C, Static Typescript

Languages without Bitwise Operators include progsbase

Read more about Bitwise Operators on the web: 1. 2.

HTML of this page generated by Features.ts

hasBinaryOperators.html 路 hasBitWiseOperators.html 路 hasBlobs.html

View source

PLDB - Build the next great programming language Search v2023 Day 157 Docs Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com