Quote Originally Posted by SlyMaelstrom
This is just strange for me, cause just yesterday I had to zero out all my array elements in my loop to make my program work, now it appears in this program, the array is automatically zeroed out.
No, UB is UB. Unitialized data is just that. Sometimes it may be zero, sometimes it may not.