Skip to content · ⁨Pular para o conteúdo⁩

Bits, binary, and bitwise operators · ⁨Bits, binário e operadores bitwise⁩

English

Numbers are bits

  • Inside the computer, every int is a row of bits — each bit is a 0 or a 1.
  • We usually read numbers in base 10, but the machine stores them in base 2 (binary).
  • Bitwise operators let you look at and change individual bits.
Português

Números são bits

  • Dentro do computador, cada int é uma fileira de bits — cada bit é um 0 ou um 1.
  • Nós geralmente lemos números em base 10, mas a máquina os armazena em base 2 (binário).
  • Operadores bitwise permitem olhar e alterar bits individuais.

Handout · ⁨Material de apoio⁩

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP