What is actually happening (probably) is that century is not actually 'holding' four elements, but you are writing four elements with the assignment ( century[3] = "hel"; ).
the string "hel" has a hidden null terminator at the end, which via this assignment ends up writing to an address which it shouldn't. Since there's no bounds checking on arrays, it works. But your stepping on memory which you shouldn't be.