\ 0 at the end of an array of C strings

char greeting[50] = "good song";

There is a null character in index [9]. And 0 is entered from the 10th to the 49th.

Since 0 in the character code is \ 0, the meaning is the same, but the characters themselves are different.

Recommended Posts