C: transitiv (doppelte) Zuweisungen

Ich habe ein solches Konstrukt in C: @ verwend

list->head = list->tail = NULL;

und jetzt überlege ich, ob das wirklich das bedeutet, was ich nehme.

Ist das gemeint?

list->head = NULL; list->tail = NULL;

ode

list->head = list->tail; list->tail = NULL;

thx zur Klärung

Antworten auf die Frage(12)

Ihre Antwort auf die Frage