What does first and last nodes of a xor linked lists contain ?

Q & ACategory: Data StructureWhat does first and last nodes of a xor linked lists contain ?
Admin Staff asked 4 years ago

What does first and last nodes of a xor linked lists contain ? (let address of first and last be A and B)
a) NULL xor A and B xor NULL
b) NULL and NULL
c) A and B
d) NULL xor A and B

1 Answers
Admin Staff answered 4 years ago

a) NULL xor A and B xor NULL