I have one function that initializes array elements to 0, and write it to a file.
In a second function I overrite certain elements and then write it to file.
The problem is, the elements which I dont alter are written to file but as junk.
Is there anything I can do about this?
The array is part of a struct, so I fwrite the entire struct, and I believe it is putting junk in the elements I dont alter.