Hello,
I am writing a grade management program. I have a structure but I keep getting an error.
struct grades
{
char students[30];
int grade1;
int grade2;
int grade3;
}
struct grades name[30], g1, g2, g3,*gptr;
Here is the error:
grades.c:25: two or more data types in declaration of `name'
grades.c:25: two or more data types in declaration of `g1'
grades.c:25: two or more data types in declaration of `g2'
grades.c:25: two or more data types in declaration of `g3'
grades.c:25: two or more data types in declaration of `gptr'
could someone help me with this please.. I am so new to C that I don't know what it means... I have exhausted all other resources..
Thanks