On 2023-07-27 4:14 PM, Tony Oliver wrote:
> On Thursday, 27 July 2023 at 14:51:57 UTC+1, wij wrote:
> N3096: 6.7.10 Initialization
>
> 15 - An array of character type may be initialized by a character string
> literalor UTF-8 string literal, optionally enclosed in braces.
> Successive bytes of the string literal (including the terminating null
> character if there is room or if the array is of unknown size) initialize
> the elements of the array.
That appears to be the C standard, while this is a C++ group.
The languages are not the same.
C++ requires that there is room for a terminating zero.
- Alf