If I declare a string with 10 elements like this:
char s[10];
then does' \ 0'a end in 10th place or 11th? Basically, my question is that we get 1 element less per line?
And if I use the strlen () function to find this string length, will the return value include a null value? I. If the string is “boy”, will the function give me 3 or 4?
source
share