Quote Originally Posted by laserlight View Post
In the case where a variable will be immediately assigned to, initialisation for the sake of initialisation might confuse a reader - or it might not - thus it becomes a matter of style. But this is only if it is coupled with the rule that variables should be declared near first use, otherwise the initialisation becomes initialisation for the sake of defensive programming.
Agreed it's a Defensive Programming, but so are try, catch, throw. But I know you too might have used various GDI functions for Windows Identifiers, Pids, Process Identifiers....and I many a times got erratic results, just because I didnt ZeroMemory() or NULL them.