logo

Crowdly

Browser

Add to Chrome

Considera o código apresentado pelo professor e que ja existe uma lista Com List...

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

Considera o código apresentado pelo professor e que ja existe uma lista

Com Lista inicial: 10 --> 20 --> 30 --> 40 --> 50 --> NULL

Diz a sequência de números quando acontece estes comandos

  t1 = lista->next; // Linha 1

t2 = lista->next->next; // Linha 2

t3 = lista->next->next->next; // Linha 3

lista->next = t2; // Linha 4

t2->next = t1; // Linha 5

t1->next = t3->next; // Linha 6

t1->next->next = lista; // Linha 7

lista->next = NULL; // Linha 8

lista = t2; // Linha 9

t3->next = NULL; // Linha 10

Nota: È possível de um nó não apontar para nenhum nó NULL, nesse caso selecionar opção perdido.

More questions like this

Want instant access to all verified answers on moodle.deisi.ulusofona.pt?

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

Browser

Add to Chrome