could someone plz help me out in the queueArr program ..I've made it public | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

could someone plz help me out in the queueArr program ..I've made it public

even if I'm not entering any input, it's giving the output

20th Feb 2021, 3:17 PM
Syeda Umme Salma
Syeda Umme Salma - avatar
1 Answer
+ 2
If you don't enter anything into the array then your array is full of whatever garbage is left behind in those memory locations. If you ran this on your PC you'd probably see different value or output for each of the non-existant elements in the array. The value you are getting here seems to be SL's default garbage memory value.
20th Feb 2021, 5:04 PM
ChaoticDawg
ChaoticDawg - avatar