I am trying to find max and average from a 1D array. No problemo. HOWEVER I get a core dump error and all the numbers are all messed up when I run my code! I'm not sure what is wrong.
There are 8 Numbers in the .txt file. I did set the size to 8 and tried 7. I'm not sure what number that is supposed to be.
A_SIZE should be set to 8.
Does L 32 print out all the numbers from *txt correctly?
In your last function temp1 will always be > temp2 (initialized to 0). How does that help to get max?
Think a for loop would be more straight forward here.