Re: Good Tutorials



On 24 Sep, 17:46, Keith Thompson <ks...@xxxxxxx> wrote:
Nick Keighley<nick_keighley_nos...@xxxxxxxxxxx> writes:
On 23 Sep, 18:21, Richard<rgr...@xxxxxxxxx> wrote:

This constant desire to confuse people with a "pointer is not an
address" is simply ridiculous. It is an "address". You address an object
or memory or whatever through it. One representation of that address is
as a value which can be displayed as a hexadecimal memory "address".

this was wrong the first time you said it. It is still wrong.

Um, how is it wrong?

A pointer is an address; the way the standard defines the terms,
they're nearly synonymous (though I suspect Richard is using the term
"address" in some more hardware-specific way).  And it's always
possible to represent a pointer value / address in hexadecimal; even
if "%p" doesn't do this, you can interpret its representation as an
array of unsigned char.

An address is not a number (though it's often implemented that way),
but Richard didn't make that particular claim here.

yes. I meant "a pointer is not a number" rather than "a pointer
is not an address". I interpreted "it's always possible to represent
a pointer value / address in hexadecimal" as "a pointer is a number".


--
Nick Keighley

.



Relevant Pages

  • Re: Is this math test too easy?
    ... > communications glitch; one of the more laughable cartoons ... it was loaded into physical memory and, ... > Or one can interpret the character string as one of the values ... A pointer to an integer? ...
    (sci.math)
  • Re: Good Tutorials
    ... One representation of that address is ... as a value which can be displayed as a hexadecimal memory "address". ... A pointer is an address; the way the standard defines the terms, ... they're nearly synonymous (though I suspect Richard is using the term ...
    (comp.lang.c)
  • Re: Good Tutorials
    ... One representation of that address is ... as a value which can be displayed as a hexadecimal memory "address". ... A pointer is an address; the way the standard defines the terms, ... Where you claimed that there was a 'constant desire to confuse people ...
    (comp.lang.c)
  • Re: Good Tutorials
    ... One representation of that address is ... as a value which can be displayed as a hexadecimal memory "address". ... A pointer is an address; the way the standard defines the terms, ... you can interpret its representation as an ...
    (comp.lang.c)
  • Re: getline (reprise)
    ... an object representation to integer values is not necessarily ... the floating-point value can ... But if you try to interpret ... The mapping functions for converting a pointer to an integer ...
    (comp.lang.c)