Just define the structure as:
struct monthlyData {
float rainfall;
float highTemp;
float lowTemp;
float avgTemp;
};
And then create an array of this structure in the function where you need it:
void f() {
monthlyData month[12];
}
. , (), . :
void otherFunction(monthlyData *month) {
}
void f() {
monthlyData month[12];
otherFunction(month);
}
, otherFunction , 12 ( ). , :
void otherFunction(monthlyData *month, int size) {
}
void f() {
monthlyData month[12];
otherFunction(month, 12);
}