I have been trying to implement XOR linked list and its operations but I have not been able to do it properly.
Is it possible to implement it in C since XOR link lis
Is it possible to implement it in C since XOR link list involves operations on addresses??
Yes it is. Addresses are pointers, pointers are numbers* and numbers allow XOR (i.e. a ^ b
).
Look up what is done, and you should be able to do the implementation.
*At least, you can think of them as numbers - explicit casts might be required though.