POV-Ray : Newsgroups : povray.off-topic : C++ questions : Re: C++ questions Server Time
6 Sep 2024 23:19:34 EDT (-0400)
  Re: C++ questions  
From: Fredrik Eriksson
Date: 24 Sep 2008 14:25:39
Message: <op.uhzz41oj7bxctx@e6600>
On Wed, 24 Sep 2008 19:53:49 +0200, Warp <war### [at] tagpovrayorg> wrote:
>   I don't remember for sure, but I think that the standard might say
> something that if you access the data behind a null pointer the program
> will be terminated.

It does not. Dereferencing a null pointer has undefined behaviour.



>   At least in practice this is so in all the most common systems.

Because it is enforced by the OS.



-- 
FE


Post a reply to this message

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