Шукаєте відповіді та рішення тестів для * Contrôles Continus - P2 - Promo 2029? Перегляньте нашу велику колекцію перевірених відповідей для * Contrôles Continus - P2 - Promo 2029 в moodle.myefrei.fr.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Soient les fonctions suivantes :
void fonction1(t_cell *ptr_c){ if (ptr_c != NULL) { fonction1(ptr_c->next); printf("%d ", ptr_c->value); }}
void fonction2(t_list mylist){ fonction1(mylist.head);}
Quelle est l'affichage obtenu si on appelle la fonction2 sur la liste suivante ?
Soient les fonctions suivantes :
void fonction1(t_cell *ptr_c){ if (ptr_c != NULL) { fonction1(ptr_c->next); printf("%d ", ptr_c->value); }}
void fonction2(t_list mylist){ fonction1(mylist.head);}
Quelle est l'affichage obtenu si on appelle la fonction2 sur la liste suivante ?
Soient les fonctions suivantes :
void fonction1(t_cell *ptr_c){ if (ptr_c != NULL) { fonction1(ptr_c->next); printf("%d ", ptr_c->value); }}
void fonction2(t_list mylist){ fonction1(mylist.head);}
Quelle est l'affichage obtenu si on appelle la fonction2 sur la liste suivante ?
Soient les fonctions suivantes :
void fonction1(t_cell *ptr_c){ if (ptr_c != NULL) { fonction1(ptr_c->next); printf("%d ", ptr_c->value); }}
void fonction2(t_list mylist){ fonction1(mylist.head);}
Quelle est l'affichage obtenu si on appelle la fonction2 sur la liste suivante ?
Soient les fonctions suivantes :
void fonction1(t_cell *ptr_c){ if (ptr_c != NULL) { fonction1(ptr_c->next); printf("%d ", ptr_c->value); }}
void fonction2(t_list mylist){ fonction1(mylist.head);}
Quelle est l'affichage obtenu si on appelle la fonction2 sur la liste suivante ?
Soient les fonctions suivantes :
void fonction1(t_cell *ptr_c){ if (ptr_c != NULL) { fonction1(ptr_c->next); printf("%d ", ptr_c->value); }}
void fonction2(t_list mylist){ fonction1(mylist.head);}
Quelle est l'affichage obtenu si on appelle la fonction2 sur la liste suivante ?
Soient les fonctions suivantes :
void fonction1(t_cell *ptr_c){ if (ptr_c != NULL) { fonction1(ptr_c->next); printf("%d ", ptr_c->value); }}
void fonction2(t_list mylist){ fonction1(mylist.head);}
Quelle est l'affichage obtenu si on appelle la fonction2 sur la liste suivante ?
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)
Soient les fonctions suivantes :
void fonction1(t_cell *ptr_c){ if (ptr_c != NULL) { fonction1(ptr_c->next); printf("%d ", ptr_c->value); }}
void fonction2(t_list mylist){ fonction1(mylist.head);}
Quelle est l'affichage obtenu si on appelle la fonction2 sur la liste suivante ?
Soient les fonctions suivantes :
void fonction1(t_cell *ptr_c){ if (ptr_c != NULL) { fonction1(ptr_c->next); printf("%d ", ptr_c->value); }}
void fonction2(t_list mylist){ fonction1(mylist.head);}
Quelle est l'affichage obtenu si on appelle la fonction2 sur la liste suivante ?