Quick Understanding Question
I am given the following function that I am supposed to write.
My question (kinda dumb but I need a second opinion) is, in the function can I use printf to show the Average and Total and then put the function in main(), or is that exactly what I am not supposed to do? If so do I need to return the value to main() and then use printf()?
getaverage() - receives the sales array and the address of total and average as arguments. Use pointer syntax. It gets the total and average values from the sales array. It does NOT display the total and average. The total and average are displayed from the main() function in the final lines of code.