|
![](/i/fill.gif) |
On Wed, 24 Sep 2008 23:51:27 +0200, Warp <war### [at] tag povray org> wrote:
> Darren New <dne### [at] san rr com> wrote:
>> 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.
>
> It would be interesting to see a quote from the C standard.
How about the C++ standard?
"The storage for objects with static storage duration (3.7.1) shall be
zero-initialized (8.5) before any other initialization takes place."
--
FE
Post a reply to this message
|
![](/i/fill.gif) |