Bitwise and Bitshift Operators in Different Languages

NameLanguagesOperatorExplanationExampleBitwise ANDJava /Python/C/PHP/Javascript /SQL & The & operator compares corresponding bits of two operands. If both bits are 1, it gives 1. If either of the bits is not 1, it gives 0.  a = 55 & 21; Bitwise ORJava /Python/C /PHP/Javascript /SQL | The | operator compares corresponding bits of two operands. If either of the bits is... Continue Reading →

Blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started