I'm trying to initialize all 5 elements of an array to 0 within a function.
Using Bloodshed. Why does it say 'subscripted value is neither array nor pointer'? Isn't Counter supposed to take the place of the value it is holding? Also, how can I make sure that the results from this function change the actual value of my array (located in a different function)?Code:double Init_Costs(double Array, double ArraySize) { int Counter; for(Counter=0; Counter<ArraySize; Counter++); { Array[Counter]=0 } }
thanks