Mike James wrote: <snip>
const char[26] array1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; char[26] array2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";It doesn't occur. Is this expected behaviour?
Yes. Static arrays have value semantics, unlike dynamic arrays, which have reference semantics.
Stewart.