#garbage value in array

11 messages · Page 1 of 1 (latest)

stable wolf
#

does anyone can explain me what is garbage value in array?

fading tangleBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

stray halo
#

when you don't init it to known values

stable wolf
slate hornet
#

If you make sth like this

#
printf("%d", i);```
tropic atlas
#

things generally have garbage in them untill you assign a value

foggy frost
#

yes

#

That is why you always, give them the value 0 (f.e. with an int array)

#

Then you exactly know what you are working with

fading tangleBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.