✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Nous considérons la liste suivante:
(le point noir symbolise NULL)
et les instructions suivantes :
typedef struct _cellule_t cellule_t;
struct _cellule_t{
int donnee;
cellule_t *suivant;
};
cellule_t *f(int d, cellule_t *liste){
cellule_t *nCell;
if (liste == NULL) {
nCell = malloc(sizeof(cellule_t));
nCell->donnee = d;
nCell->suivant = NULL;
return nCell;
}
liste->suivant = f(d, liste->suivant);
return liste;
}
Quel schéma correspond à la liste après l’appel liste=f(15,liste) ?