Hacker News new | past | comments | ask | show | jobs | submit login

If they're globals, then yes you should. Having dangling pointers anywhere, even in supposedly unused areas, tends to come back and bite you.

For locals, why bother? The optimizer will probably discard the writes, and worrying about stack addresses being reused is a waste of mental space and clutters the code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: