logo

Crowdly

Browser

Add to Chrome

* Contrôles Continus - P2 - Promo 2029

Looking for * Contrôles Continus - P2 - Promo 2029 test answers and solutions? Browse our comprehensive collection of verified answers for * Contrôles Continus - P2 - Promo 2029 at moodle.myefrei.fr.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

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 ?

0%
0%
100%
0%
View this question

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 ?

View this question

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 ?

0%
0%
0%
0%
View this question

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 ?

0%
0%
0%
0%
View this question

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 ?

View this question

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 ?

0%
0%
0%
0%
View this question

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 ?

0%
0%
0%
0%
View this question

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)

View this question

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 ?

100%
0%
0%
0%
View this question

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 ?

0%
0%
0%
0%
View this question

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