Re: offsetof
- From: darkknight <gp.kiwi@xxxxxxxxx>
- Date: Sat, 01 Oct 2005 01:20:28 +1200
On Fri, 30 Sep 2005 13:27:44 +0100, Flash Gordon wrote:
>darkknight wrote:
>
><snip stuff that seems about right>
>
>> The expression (type*)0 does NOT create a NULL pointer constant unless
>> the type of "type" is void i.e. it is (void*)0.
>
>Wrong. It explicitly IS a null pointer constant of the specified type.
>In fact, with (type*)0 the 0 is a null pointer constant and, at run
>time, it explicitly gives you a null pointer.
Please quote the relevant sections of the standard to support your
claim.
darkknight
.
- References:
- offsetof
- From: luke
- Re: offsetof
- From: darkknight
- offsetof
- Prev by Date: Re: Looking for PowerC Library Source Disk
- Next by Date: Re: printf execution problem
- Previous by thread: Re: offsetof
- Next by thread: Re: offsetof
- Index(es):
Relevant Pages
|