0

What is this?

https://code.sololearn.com/chFkZehqkIyy/?ref=app I have an array of 5 elements.. But if I try to show 6th element which is not included here.. but still each time it shows a random number combining my elements.. how?

25th Apr 2021, 6:59 AM
Mohammad Mehedi Hasan
Mohammad Mehedi Hasan - avatar
1 ответ
+ 1
undefined behavior, it doesnt combine the elements because the garbage value is different every time
25th Apr 2021, 7:11 AM
Slick
Slick - avatar