[Freeciv-Dev] Re: newbie C question
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, 5 Mar 2002, Piotr Sulecki wrote:
> > No. No variables are initialised at all in C.
>
> I seem to recall something about static and global variables being
> initialised with zeroes. But I may be wrong, or it may be
> implementation-specific
Sorry, I was referring to automatic variables. Globals are evil anyway. ;)
> (I'm 99% sure Borland/Turbo C/C++ for DOS works this way).
A quick test suggests that gcc does this too.
Ben
--
ben@xxxxxxxxxxxxxxxxxxxxxx http://bellatrix.pcl.ox.ac.uk/~ben/
"It is quite a three-pipe problem."
- 'The Red-Headed League', Sir Arthur Conan Doyle
[Freeciv-Dev] Re: newbie C question, Raimar Falke, 2002/03/05
|
|