How to differentiate pointer addresses in program : <p>I have a quick question, I am working on a garbage collection program, and in the program, we must check both the addresses that the pointer points to, and the actual address that the pointer is sitting on as well. We are using C in order to implement a mark and sweep algorithm. My question is: If I want to know the memory location that the pointer is sitting on, how would I do that. Similarly, if I want to know the address that the pointer points to, how would I do that?</p>
