How tf does binary code work.

626 views

it’s just a bunch of 0’s and 1’s.. like I can just put a bunch of them and somehow make a sentence??? like what does this mean -> 010100101001010010 (i legit just spammed 0’s and 1’s)

In: 0

26 Answers

Anonymous 0 Comments

Computers are binary because it’s easier to design one this way. 0 represents ON (5 volts of electricity running through a wire) and 1 represents OFF (low-voltage or no voltage running through the wire). It’s more reliable than other possible ways of dealing with information.

We can create little “switches” that can do NOT operations, AND operations, OR (inclusive or) operations, XOR (exclusive or) operations, and some combinations of the previous ones:

NOT 1 = 0, NOT 0 = 1

1 AND 0 = 0, 1 AND 1 = 1

1 OR 0 = 0, 0 OR 0 = 0

1 XOR 0 = 1, 0 XOR 1 = 1, 1 XOR 1 = 0, 0 XOR 0 = 0

etc.

and thereby perform operations on data, primarily “ordinary” arithmetic, but theoretically, any set of instructions that can physically be carried out can be done using some combination of such simple operations. And a program is just a set of instructions.

I could go into more detail about how computers, but this stuff was two entire college courses (one on Boolean algebra, one on the architecture of a CPU)

You are viewing 1 out of 26 answers, click here to view all answers.