Im currently trying to write a simple average algorithm in flat C and i am unable to load my array with elements. Please could somebody offer me some advice on where i am going wrong?
Also is it correct i have made num and array as global variables? If these where in the average algorithm would they be reset to zero each time the function was called?
Please see attachment for sourcecode
Look forward to your advice