logo

Crowdly

Browser

Додати до Chrome

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

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

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)

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

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

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

Browser

Додати до Chrome