I am working on a problem in which the an integer pointer is initialized to 0xDEADBEEF. It is allocated memory in my memory pool and then deallocated later.
I read docs on this magic value number, but i am not sure how to use it.
Please help!
The point of initialising memory to 0xDEADBEEF is that it's a string of characters that's immediately noticeable when looking at the hex values of memory. If you're using a debugger to look at the contents of memory, it should be easy to notice the letters "DEADBEEF", and you'll know that there's some uninitialised memory there.