Original Post
I made a function where I declared an array (of structs).Then I ran the function and the array values changed. The second time I ran that function, the array got declared again ofcourse but it still had the values from after the first run. Is there anyway to prevent this from happening? I want the array out of the memory when I'm not running the function.So that its values are reset when I run the function again.