A pointer-based string is a built-in array of characters ending with a null character ('\0'), which marks where the string terminates in memory. A string is accessed via a pointer to its first character. The
sizeof a string literal is the length of the string including the terminating null character. Pointer-based strings are like built-in arrays—a built-in array name is also a pointer to its first element.