[log in to unmask]">I find that compilation systems (or standalone lints) which identify "use before set"... they provide me with a quicker solution than setting everything to zero vs. whatever normally happens.The object is not to use the workaround all the time. The object is to use the workaround to find that there is a bug.
[log in to unmask]">Very wise of you.Better all variables should be set to some invalid data (like NaN), unless explicitly initialized.There is no equivalent to NaN for integers. Yes, it's handy to have NaN initialization for floating point. Personally, I like to be able to have initialization to a constant, and vary the constant to see if the program behavior changes.