invalid application of ‘sizeof’ to incomplete type ‘Student’
Asked by
JungleRat
hello :)
i am writing a code for a linked list of students
when i try to ellocate memory for the struct 'student' i get an error
here is the code:
StudentList* insert(StudentList* sl,char* name,int grade,int ID)
{
Student* toInsert;
toInsert=Null;
if (toInsert = (Student*
{
printf("not enough memory \n");
exit(1);
}
else
and this is the error i get :
/home/c_
please help
thank you
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu kdevelop Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Vincenzo Consales
- Solved:
- Last query:
- Last reply:
To post a message you must log in.