You are viewing this question as it will appear in the manual grading interface.
Return to the normal view when
you are done.
Correct answer
Click to reveal
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include <stdlib.h> #include "list.h" int list_delete_first(struct list *list) { if (!list->head) return -1; int old_value = list->head->value; struct node *old_node = list->head; list->head = old_node->next; free(old_node); return old_value; } |
Student view placeholder
In student views this area is used for assessment and score info.
Tools
Staff information
Question
Title:
Autograder demo: Remove linked list element in C (Check Framework)
Variant
Started at:
2026-09-19 07:55:56 (CDT)
Duration:
0s
Show/Hide answer
{}