why the code is working fine ?
4/27/2021 5:04:31 AM
Your program is showing an undefined behaviour.
C++ doesn't specify what to do when a program tries to access values outside the limit of arrays, so the behaviour of the program can't be determined there.
5 elements of 5 bytes each 23 is just 1 element out of 5 The one-dimensional array can hold 5 elements.😎
Send us a message