Copyright Page
- Joint Authorship
- Copyright Declaration
- Permitted Uses
Introduction: What This Book Will Make Clear
- What This Book Is Not
- What This Book Is
- What We Will Cover
- How to Read This Book
- The Authors’ Perspective
- A Note on Language
- A Note on AI and Learning
- What You Will Become
- If You Cannot Afford This Book
Author Interview: Meet the Three Voices Behind This Book
A Small Theater: The First Meeting
Chapter 1: How Does a Computer Actually Work?
- 1.1 The Skeleton: CPU, Memory, Storage, Motherboard
- 1.2 L’s “Terminology Breakdown Corner”
- 1.3 Hands-On: Look at Your Own Computer
1.1 Information Literacy: What Did You Actually Learn?
- The Three-Sentence Rule
- The “Why Should I Care?” Section
- Quick Quiz: Can You Pass the “Grandma Test”?
- A Real Problem: Can You Spot the Mistake?
- One More: The “Price” Question
- The Takeaway: What You Should Remember from This Chapter
- Onward to Chapter 2
1.2 The Value Cube: How to Learn Anything (Including Code)
- The Psychologist’s Question
- What This Means for Learning Code
- The Grandma Test (Revisited)
- The “Why Do I Need to Know This?” Moment
- A Real Example: Learning Pointers
- The “Second Brain” Method
- The One Question to Ask Yourself
- Practice: Five Exercises to Train Your Learning Method
- Onward to Chapter 2
Chapter 2: First Contact — The C Language
- 2.1 Why C? A Brief History
- 2.2 Where Does C Fit in the Language Family?
- 2.3 Your First C Program
- 2.4 Line-by-Line Breakdown
- 2.5 Variables: Putting Things in Memory
- 2.6 Printing Variables: printf with Placeholders
- 2.7 Getting Input: scanf
- 2.8 Doing Something: A Simple Calculation
- 2.8.1 Break It on Purpose
- 2.9 What You’ve Learned in This Chapter
- 2.10 Practice: You Build Something
- 2.11 T’s Information Literacy Summary
- 2.12 Value Cube: Understanding C — Its History, Power, and Limits
Chapter 3: Variables, Memory, and Writing Safe Code
- 3.1 Memory Is Just a Big List of Numbers
- 3.2 Every Variable Has Three Properties
- 3.3 How Much Memory Does Each Type Use?
- 3.4 Memory Layout: How Variables Are Arranged
- 3.5 The Stack: Where Local Variables Live
- 3.6 What Are Reserved Words (Keywords)?
- 3.7 What Are Header Files?
- 3.8 Creating Your Own Header File
- 3.9 <> vs ““ — What’s the Difference?
- 3.10 Naming Conventions: How to Write Readable Code
- 3.11 Memory Safety: How Variables Affect Security
- 3.12 The Golden Rules of Safe Variable Usage
- L’s Quick Interruption
- Practice: Explore Your Own Memory
- T’s Information Literacy Summary
- Chapter 3 Checklist
- 3.12 T’s Information Literacy Summary
- 3.13 Value Cube: The Story of Variables — From Math to Memory to Security