August 2024
Intermediate to advanced
792 pages
22h 45m
English

In this chapter, you’ll implement three new integer types: char, signed char, and unsigned char. These are the character types, which have a size of 1 byte. Because your compiler already supports signed and unsigned integers in multiple sizes, you can add these new types with minimal effort. You’ll also add support for string literals and character constants. String literals play a weird role in C: sometimes they behave like compound initializers, and at other times they represent constant char arrays. ...
Read now
Unlock full access