For my C class, I have to write a program where the user enters how many fahrenheits he will be entering, but the fahrenheits have to be in an array. So a dynamic array seems the obvious choice. In main, we can only have initializations and function calls.
For example, if i have:
int main (void)
{
int *dynArray;
How would I pass the dynamic array to another function? Do I have to use malloc in only the first function that I call it to? Help!