In many languages such as Java, strings and character arrays are distinct types. In Java one must use toCharArray()
in order to use array semantics on strings.
In C, strings and character arrays are more or less the same. A C string is just a character array with a null terminator. Otherwise there is no internal distinction between them.
What are the advantages or disadvantages of strings being distinct types from character arrays?