Mail Archives: djgpp/1995/10/15/05:56:45
On Fri, 13 Oct 1995, Jere McDevitt wrote:
> Just a thought, but I remember back in my old programming days (pre C++)
> that all of the "good" programmers said NEVER count on a variable having
> a value before you initialized it. I know that Borland zero's out the
> global data, so maybe we've gotten a little lazy expecting a variable to
> be 0'd without doing it ourselves.
Static variables in C are guaranteed by the language standard to be
zeroed, so you can count on that.
- Raw text -