C - why is only char array null terminated?

c, string

Solution

`char[]` doesn't have to be NUL terminated. It's a convention used when you want to use char arrays as strings. You can use a char[] for your own purposes without any terminator.

Problem

Why does a char array needs to be NULL-terminated? Why does not an int array for example needs to have a delimiter at the end?

Original source

Related problems