by rybosome · 11y ago · 0 comments
Calling printf can (will) change what's beyond the stack of the calling function, so if the pointer in question pointed outside the active stack, printf may have put a safer value there by coincidence.
methods of disassociating mutable objects before printing will save you from some heisenbugs
a la javascript
console.log(JSON.parse(JSON.stringify(obj))