Character Arrays

How S2 contain null character as value of S2=“hello” there is no null character in it (time : 10mins).

string contains ‘\0’ at the end.