www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/07/03:55:46

Date: Mon, 7 Jun 93 09:57:09 +0300
From: Tapio DOT Lehtonen AT cs DOT Helsinki DOT FI (Tapio Lehtonen)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: static variable initialization

Gal Shalif: "Re: static variable initialization" (Jun  6, 15:28):
> > 
> > jih-shin ho: "static variable initialization" (Jun  5,  9:05):
> 
>     On page 219 of the C Programing Language - Second Edition (ANSI C) it is
>     written:
> 
>         A static object not explicitly initialized is initialized as if it
>     (or its members) were assigned the constant 0. The initial value of an
>     automatic object not explicitly initialized is undefined.
> 
> > 
> > 

Good thing this came up. Now even I know about those initialized
variables. Thanks. Seems that Brodie & Plauger published their book
``Standard'' C" on Microslop Press for good reasons.      :-)

- Raw text -


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