exp 3,5,6,7: init

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-12-27 19:40:13 +05:30
parent 8fa27b556e
commit c460e95304
9 changed files with 266 additions and 3 deletions

7
2.c
View File

@@ -82,9 +82,10 @@ int main() {
delete (&head, 2);
reverse(&head);
while (head != NULL) {
printf("%d ", head->sid);
head = head->next;
student *cur = head;
while (cur != NULL) {
printf("%d ", cur->sid);
cur = cur->next;
}
// free