In this code
aux->info = value; aux->next = *list; aux->prev = NULL: (*list)->prev = aux; *list = aux;
See if I'm correct:
aux->info = value;Get the value in variable aux
aux->next = *list;Pointer next of the variable aux points to list (What list? Points to the entire list that already exists?)
aux->prev = NULL;Will insert the value at the beginning then prev is null
(*list)->prev = aux; *list = aux;I do not understand that part of the code
What I do not understand is when you point to: *list, aux (ie without the prev or next)


Sign In
Create Account


Back to top









