Skip to main content
Logo image

Chapter 7 Characters and ASCII Codes

We have previously focused on how numbers, such as integers and floats, are stored in the computer’s memory. Suppose now you wanted to store someone’s middle initial in a variable: how would the computer manage to save such a character in its memory using only zeros and ones?
In this chapter, we will dive into this topic of characters and see how they are stored in memory. We will also practice coding with characters and find a pattern between how upper- versus lower-case letters are stored in the computer’s memory.