I have a simple program like this:
#include
#include
#include
typedef struct
{
int numberOfDays;
The reason is that your months are indeed nul-terminated. If you have an array with 10 elements, and have an initialiser for 3 elements, then the rest is filled with 0's. If you had a month with 11 characters, the compiler would tell you. If you had a month with 10 characters, you would be in trouble because there would be no nul-termination, and the compiler wouldn't tell you.