8.1 String Basics and the Null Terminator
C has no dedicated string type — a string is simply a char array ending with the special null character ' ', which marks where the text stops. "Hello" therefore actually occupies 6 bytes (5 letters + the terminator), not 5. Every string-handling function relies on finding this to know where to stop reading or writing.
char str[6] = "Hello";