Fixed the largest avg find

This commit is contained in:
Sambo Chea 2020-08-02 21:57:57 +07:00
parent ee1ec269b4
commit 1007604842

View File

@ -271,6 +271,10 @@ STUDENT *find_maximum_avg()
temp = temp->next;
}
// set max next element to NULL
// because we use only one record
max->next = NULL;
return max;
}