logo

Crowdly

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

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

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%
More questions like this

Want instant access to all verified answers on moodle.myefrei.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!