EDIT: POSTED TOO EARLY ACCIDENTALLY
Firstly, it is probably best to keep the structure definition outside of main then create the declaration in main.
Code:
/* structure definition */
struct test {
char test1[25];
int test2[20];
};
/* function prototype */
int otherfunction(struct test[]);
int main () {
struct test a[10];
otherfunction(a);
return 0;
}
This code will pass the actual array of structures created. To create and pass a single structure:
Code:
/* structure definition */
struct test {
char test1[25];
int test2[20];
};
/* function prototype */
int otherfunction(struct test);
int main () {
struct test a;
otherfunction(a);
return 0;
}