logo

Crowdly

Browser

Додати до Chrome

Consider the following function, which recursively searches for the maximum in a...

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

Consider the following function, which recursively searches for the maximum in a list :

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);

}
we want to call this function from the main program, for a non-empty list named list_1.

Which main program is used to make this call to obtain the correct result ?

(we assume that all the right #includes have been made)

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

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

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

Browser

Додати до Chrome