6) Consider the following program fragment written in pseudocode and the corresponding data that make up the variable named list. The variable ptr is the pointer to the first node in the list, and data stores the information to process. Variables aux_1 and aux_2 are of pointer type.
Do aux_2 = ptr
Do data=’Karla’
While aux_2^.ext <> nil do
Do aux_2 = aux_2^.next
End_while
Create(aux_1)
Do aux_1.informartion =data
Do aux_1^.next=nil
Do aux_2^.next = aux_1
Do aux_2=ptr
While aux_2^.next <> nil do
Print(aux_2.information)
Do aux_2=aux_2^.next
End_while
|
Which option shows the correct output value, according to the above program?