POV-Ray : Newsgroups : povray.off-topic : C++ questions : Re: C++ questions Server Time
7 Sep 2024 05:12:29 EDT (-0400)
  Re: C++ questions  
From: Darren New
Date: 24 Sep 2008 17:37:03
Message: <48dab2ff@news.povray.org>
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.

-- 
Darren New / San Diego, CA, USA (PST)


Post a reply to this message

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