What is this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 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