POV-Ray : Newsgroups : povray.off-topic : C++ questions : Re: C++ questions Server Time
7 Sep 2024 05:12:17 EDT (-0400)
  Re: C++ questions  
From: Mueen Nawaz
Date: 24 Sep 2008 23:46:48
Message: <48db09a8$1@news.povray.org>
Darren New wrote:
> Mueen Nawaz wrote:
>>     I may be wrong, but I believe all variables declared outside of a 
>> function have default values.
> 
> More exactly, in C at least, any variables allocated statically start 
> with a default value of zero appropriate for their type. That includes 
> static variables allocated inside a function.

	Yes, I seem to recall that it's true for static variables as well (in 
C++ - not sure about C).

-- 
Atheism is a non-prophet organization.


                     /\  /\               /\  /
                    /  \/  \ u e e n     /  \/  a w a z
                        >>>>>>mue### [at] nawazorg<<<<<<
                                    anl


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.