POV-Ray : Newsgroups : povray.off-topic : C++ questions : Re: C++ questions Server Time
7 Sep 2024 05:09:00 EDT (-0400)
  Re: C++ questions  
From: Warp
Date: 24 Sep 2008 17:51:27
Message: <48dab65f@news.povray.org>
Darren New <dne### [at] sanrrcom> 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.

  It would be interesting to see a quote from the C standard.

-- 
                                                          - Warp


Post a reply to this message

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