logo

Crowdly

the following function performs a chain at the head of the list (adds a new cell...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

the following function performs a chain at the head of the list (adds a new cell to the head) :

(we assume that the function t_cell *createCell(int); creates a new individual cell)

void addHead(t_list *p_list, int val)

{

    t_cell *new = createCell(val);

    p_list->head = new;

    new->next = p_list->head;
}

0%
100%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.myefrei.fr?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!