logo

Crowdly

Soit le code suivant : typedef struct _cellule_t cellule_t; struct _cellu...

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

Soit le code suivant :

typedef struct _cellule_t cellule_t;

struct _cellule_t{

 int donnee;

 cellule_t *suivant;

};

cellule_t *cons(int val, cellule_t *pListe){

 cellule_t *el;

 el = malloc(sizeof(cellule_t));

 if (el == NULL) return NULL;

 el->donnee = val;

 el->suivant = pListe;

 return el;

}

int main(){

 cellule_t *ns = NULL;

 ns = cons(15, ns);

 ns = cons(12, ns);

 ns = cons(51, ns);

 return 0;

}

Quel schéma correspond à la liste créée ?

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on moodle-sciences-24.sorbonne-universite.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!