Lesson 15: Strings — a char array & '\0'
After learning arrays, it's time for a secret: C has no special 'string' type. A string is simply an ordered array of chars that ends with the special character '\0' — the null terminator. That's why char name[] = "Dana"; occupies 5 cells: four letters plus one cell for the end marker. We'll learn t