If you want to find the length of a NUL-terminated string you have to start at index 0 and count until you reach the end. This has a time complexity of O(n).
This is fine for short character arrays, but imagine you had to find the length of a 1,000,000 character text.
