Hello!
I've read that there are, generally, different implementations of pointers: the most familiar implementation uses bare memory addresses. Others may use offsets (from a fixed memory address) or double indirection.
If a pointer is implemented using offset or double indirection, how do two pointers compare? In other words, does operator== compare the values of its pointer operands? Or does operator== compare the actual memory addresses calculated from the values of its pointer operands?
I'm asking this question because I've been thinking what if two pointers, having different values, point to the same object: does operator== return true or false in this case?
Thanks for help...