I have a simple question.
Why is it necessary to consider the terminating null in an
array of chars (or simply a string) and not in an array of integers. So when i want a string to hold 20 characters i need to declare char string[21];
. When i want to declare an array of integers holding 5 digits then int digits[5];
is enough. What is the reason for this?