Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!mailrus!uflorida!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.lang.c
Subject: Re: "do ... while ((NULL + 1) - 1);" -- valid C?
Message-ID: <10748@smoke.BRL.MIL>
Date: 16 Aug 89 04:27:07 GMT
References: <1043@levels.sait.edu.au> <828@ruso.UUCP>
Reply-To: gwyn@brl.arpa (Doug Gwyn)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 7

In article <828@ruso.UUCP> wolfgang@ruso.UUCP (Wolfgang Deifel) writes:
>it will return (char*)0 ( regardless of the machine or the compiler ),
>and here it's legal to add '1' ( the result is (char*)1 ).

What is this, a time-shift phenomenon?  We keep getting a sprinkling
of articles making this incorrect claim.  It is NOT legal to perform
arithmetic on a null pointer.