logo

Crowdly

Browser

Add to Chrome

Soit la fonction suivante, qui recherche le maximum dans une liste, de manière r...

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

Soit la fonction suivante, qui recherche le maximum dans une liste, de manière récursive :

int maxRecList(t_cell *cell, int cur_max)

{

if (cell == NULL) {

return cur_max;

}

if (cell->value > cur_max) {

cur_max = cell->value;

}

return maxRecList(cell->next, cur_max);

}
on souhaite appeler cette fonction depuis le programme principal, pour une liste nommée list_1, non vide.

Quel programme principal permet d'effectuer cet appel pour avoir le bon résultat ?

(on suppose que tous les bons #include sont faits)

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!

Browser

Add to Chrome