Alright so I'm making this program and it has to do with inputting temperatures for the month. I am using a array (obviously) to store the values. The problem i run into is this:
In main() I make all the values of the array equal to 0.
Then I call the array using the function getTemps.
This gives values to all the spots in the array.
I have to use a separate function to sort them.
The problem is that I when I call the array...I get the values from main() which are 0's.
How can I ge the values from the getTemps function? I'm pretty sure I need to use pointers, but I'm not sure how to use them with arrays so that I can bring all the values at one time.
Please give me an example...Thanks in advance,