www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/15/05:56:45

Date: Sun, 15 Oct 1995 11:30:15 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jere McDevitt <mictali AT netcom DOT com>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Stupped : V2.0 bug?

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019