TRASH AT FIRST FEW VALUES

Feb 22, 2016 at 4:24pm
My code, I cannot share as of yet as this is a graded matter, but as I run my code, there are trash values at the first few index values (2D array).

Can someone enlighten me as to the possible causes?

(I tried adding: long long to the int, and IT DID reduce the amount of trash values, like, from 13 index values to 8.)
(I'm currently trying to pull of a [30][4])

Please, one can answer from experience, or direct me to a link that explicitly answers this problem
Last edited on Feb 22, 2016 at 4:31pm
Feb 22, 2016 at 4:32pm
Sounds like you have unitialised variables. Or some other process is accessing out-of-bounds elements and overwriting that area of memory.
Last edited on Feb 22, 2016 at 4:35pm
Topic archived. No new replies allowed.