how do computers know how to differentiate binary without there being spaces or separations?

399 viewsOtherTechnology

I know the jist of binary, but something that I have never understood is how it know where one “word” stops and another starts.

so if 9 is 1001 and 57 is 111001, how does the computer know that the “1001” in 111001 isn’t whatever 11 is and then the number 9, 1001? only having two digits, 1 and 0 seems like not enough to differentiate.

If you want to have the word “apple” written in binary, do you take the binary code of each letter and smoosh them together or is there a separate specific code for “apple”?

In: Technology

6 Answers

Anonymous 0 Comments

Simple: you program it with either everything having a fixed length and position, or reserve a space in a fixed place with a fixed length that tells you how long the data and/or where it is.

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