All string literals have an implicit null-terminator, irrespective of the content of the string.
The standard (6.4.5 String Literals) says:
A byte or code of value zero is appended to each multibyte character sequence that results from a string literal or literals.
So, the string literal "abc"
contains the implicit null-terminator, in addition to the explicit one. So, the array a
contains 5 elements.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…