Measures Concepts
GitHub icon

Bitwise Operators

Bitwise Operators - language feature

< >
Example from JavaScript, TypeScript:
var x = 5 & 1;
Example from Python, Cython, Speedie:
x << y
Example from C, C++, Objective-C, Tick C:
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 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, Python, C, C++, R, TypeScript, Objective-C, Cython, C3, Speedie, Slope, Jule, C2, Dale, Tick C

Languages without Bitwise Operators include progsbase

This question asks: Does the language have operators for bitwise manipulations?

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

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout