how can I use a structure as a parameter to a function? I tried this:
struct
{
char name[30];
char section[20];
float grade;
}student[30];
After reading and storing the information to the structure, I called the function that writes the data into a file:
show(f,n,student); //n is the number of students
And this is the show function:
void show(FILE *f,int n, struct elev);
{
...
}
Thank you.