Article View: comp.std.c
Article #4397Re: null pointer constant
From: Clive D.W. Feather
Date: Mon, 27 Nov 1995 06:04
Date: Mon, 27 Nov 1995 06:04
16 lines
1105 bytes
1105 bytes
In article <49b202$62t@nntp.Stanford.EDU>, Denizen of the Deep <becker@Xenon.Stanford.EDU> wrote: > If the type (void *) is not compatible with pointer-to-function > types, then why is the expression (void *)0 a legal null > pointer constant? > > Since the null pointer constant is assignable to a pointer-to- > function, it seems that this is rather misleading. It's a special case. Just like the expression 0 is a legal null pointer constant, even though int is not compatible with pointer. -- Clive D.W. Feather | If you lie to the compiler, clive@demon.net (work, preferred) | it will get its revenge. clive@stdc.demon.co.uk (home) | - Henry Spencer
Technical Details
Message-ID:
<DIou7q.GFB@stdc.demon.co.uk>Path:
arc1-ca.pugleaf.net!stdc.demon.co.uk!cliveReferences:
<49b202$62t@nntp.Stanford.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!stdc.demon.co.uk!clive From: clive@stdc.demon.co.uk (Clive D.W. Feather) Newsgroups: comp.std.c Subject: Re: null pointer constant Date: Mon, 27 Nov 1995 06:04:37 GMT Organization: Demon Internet Limited (personal account) Message-ID: <DIou7q.GFB@stdc.demon.co.uk> References: <49b202$62t@nntp.Stanford.EDU> Reply-To: clive@demon.net X-NNTP-Posting-Host: stdc.demon.co.uk