Under what conditions do I have to mem manage a simple C array
I'm pretty new to Objective C and I'm trying to use a basic C array to do some stats work. This involves looping through some moderately intense math which includes functions I've written to do factorials, permutations and combinations.
The problem is at some point during my program my data array's values get lost and it gives me back trash instead of what I set the array values to. My limited understanding of C has told me that as soon as my functions run there is no guarantee my array variables will remain fixed without allocating memory and using pointers to assign values. Do I understand this correctly?
|