+ 1
I guess that the second array is created over the same memory addresses previously occupied by the first one. As array2 is not initialized, it prints whatever is stored in that position.
11th Feb 2022, 6:39 PM
David
David - avatar