Skip to content · ⁨דלג לתוכן⁩

Bits, binary, and bitwise operators · ⁨ביטים, בינארי ותפעולי ביט⁩

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.
עברית

מספרים הם ביטים

  • בתוך המחשב, כל int הוא שורה של ביטים — כל ביט הוא 0 או 1.
  • אנחנו רואים בדרך כלל מספרים בעשרוני (בסיס 10), אך המאגר מאחסן אותם ב-בסיס 2 (בינארי).
  • מקרי ביט מאפשרים לך לבדוק ולשנות ביטים בודדים.

Handout · ⁨חומר עזר⁩

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP