Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

array getting filled with trash values

$
0
0

I initiate an array in a function and check the values within that array right after initialisation and everything is fine, down the road after some code is executed, I check the values again they are modified even though I haven`t touched the array (no direct edit of values). What`s causing this? do I need to place the initialisation outside the function so that the array doesn`t get affected by whatever goes wrong in the said function?


Viewing all articles
Browse latest Browse all 16874

Trending Articles


FLASHBACK WITH SIRASA FM AT GALGAMUWA 2022


Mp3 Download: Mdu - Mazola


Imitation gun was fired at motorist in Leicester road-rage incident


Ndebele names


MCKINNEY EMALINE “EMMA” OF WES...


Okra & Motia — The Workshop (Prod by Hammer)


Skint TV teen to be sentenced


Moondru Mudichu 19-09-2017 – Polimer tv Serial


YOSVANI JAMES Arrested by Miami-Dade County Corrections on Jan 10, 2017


Stories • Goddess Stepmom



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>