Section 4: Character Encoding Flashcards
1
Q
Q: What are ASCII and Unicode?
A
A: Standards for encoding characters into binary. ASCII uses 1 byte per character, while Unicode (e.g., UTF-8) supports multiple bytes.
2
Q
Q: How is a null-terminated string stored in memory?
A
A: Characters are stored sequentially, followed by a null byte (00) to indicate the end of the string.