Re: C ethics question
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Sat, 31 Mar 2007 12:03:57 +0000
Servé Laurijssen said:
"Harald van D?k" <truedfx@xxxxxxxxx> wrote in message
news:1175340222.133195.49390@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Servé Laurijssen wrote:
Now the comparison of these pointers is UB in C [...]
No, it isn't.
oh, I thought that you can only compare pointers if they are declared
in the same object.
You're thinking of relational < <= >= > comparisons. There is no problem
with equality == != comparisons.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
.
- References:
- C ethics question
- From: Servé Laurijssen
- Re: C ethics question
- From: Harald van Dijk
- Re: C ethics question
- From: Servé Laurijssen
- C ethics question
- Prev by Date: Re: OT - Re: Looking for a *FAST* graphics library More options
- Next by Date: Re: OT - Re: Looking for a *FAST* graphics library More options
- Previous by thread: Re: C ethics question
- Next by thread: Re: C ethics question
- Index(es):
Relevant Pages
|