Since in XOR linked list current pointer store the XOR of addresses of previous and next node.
my question is how do we XOR two pointers?
shanki himanshu 27 Light Poster
Recommended Answers
Jump to PostThe
^
is used for XOR operations; see Boolean Operations.
Jump to Postcan you please write how to do it using intrptr_t?
Don't get confused with stuff like intptr_t. All you're doing is casting the value stored by a pointer (not the value stored by the pointed to object) into an integer type so that bitwise operators can be used …
All 5 Replies
nmaillet 97 Posting Whiz in Training
shanki himanshu 27 Light Poster
nmaillet 97 Posting Whiz in Training
shanki himanshu 27 Light Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.