473,889 Members | 1,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Mastering C Pointers"....

Hey guys, I'm new here, just a simple question.

I'm learning to Program in C, and I was recommended a book called,
"Mastering C Pointers", just asking if any of you have read it,
and if it's worth the $25USD.

I'm just looking for a book on Pointers, because from what I've
read it's one of the toughest topics to understand.

thanks in advanced.

sincerely ... Andy
Nov 13 '05
388 22005
Mark McIntyre wrote:
Well..... NULL is a macro, which is converted by the preprocessor to a
constant inserted literally into the processed code, whose value is
selected to be the one the implementation uses to mean "I point
nowhere". So its not actually a pointer at this point. If you see my
point.


The Standard says: "Such a pointer, called a null pointer, is guaranteed to
compare unequal to a pointer to any object or function."
and yet, in the expression if(p != NULL) the NULL is not "stored
in anything" - that is, the RHS of the != is not the value of an object.


But thats fine - its not a pointer either... :-)


The Standard disagrees with you.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 13 '05 #311
Lew Pitcher wrote:
August Derleth wrote:
Le*********@td. com (Lew Pitcher) wrote in message
news:<3f******* ********@news21 .on.aibn.com>.. .
<snip> Those old machines were rather interesting, especially where the
designers kind of knew what they really wanted but had to work around
the hardware to get something close.


Funny thing is, those "old" machines are still cranking out the data.


Surely you mean "cranking /in/ the data"?

Data is (or are!) what you put into a computer. What it cranks out is
information. Well, that's the general idea, anyway.
--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 13 '05 #312
Richard Heathfield <do******@addre ss.co.uk.invali d> wrote in message news:<bo******* ***@sparta.btin ternet.com>...
goose wrote:
Mark McIntyre <ma**********@s pamcop.net> wrote in message
news:<hp******* *************** **********@4ax. com>...

And are functions objects?


iirc, yes.


YRI.


yup! corrected above as well. i was thinking "function pointers".
goose,
the *other* "ruse", but not the troll.
Nov 13 '05 #313
Joona I Palaste <pa*****@cc.hel sinki.fi> wrote in message news:<bo******* ***@oravannahka .helsinki.fi>.. .
Richard Heathfield <do******@addre ss.co.uk.invali d> scribbled the following:
goose wrote:
Mark McIntyre <ma**********@s pamcop.net> wrote in message
news:<hp******* *************** **********@4ax. com>...

And are functions objects?

iirc, yes.

YRI.


TIWITAW.


<all confused>

goose,
"cut that out!!!"
Nov 13 '05 #314
"Arthur J. O'Dwyer" <aj*@nospam.and rew.cmu.edu> wrote in message news:<Pi******* *************** *************@u nix44.andrew.cm u.edu>...
On Wed, 5 Nov 2003, Irrwahn Grausewitz wrote:

ru**@webmail.co .za (goose) wrote:

(btw: "roose" is an intentional troll, ever considered that
"roose" is just a mispelled "ruse"?)


Yes, I did indeed, but ruse's and Roose's postings are definitely of
I should certainly hope so :-)
my only vices are the occasional incorrect advice and
lazy punctuation.
different style. And I do not consider either one to be smart enough
to successfully pretend to be somebody else.

Remember ruse: "... again, spoke your nose!" makes me still ROFL. :D


No, that one was ROSY. Google "spoke ur nose"... :-)
I don't think we've ever had a troll named "ruse."
http://dictionary.reference.com/search?q=ruse

-Arthur,
maybe it *is* best not 2 spoke my nose on this matter


maybe its *never* a good idea to spoke your nose, it
sounds quite painfull :-)

goose,
*still* the other "ruse".
Nov 13 '05 #315
goose wrote:
Joona I Palaste <pa*****@cc.hel sinki.fi> wrote in message
news:<bo******* ***@oravannahka .helsinki.fi>.. .
Richard Heathfield <do******@addre ss.co.uk.invali d> scribbled the
following:
> goose wrote:
>> Mark McIntyre <ma**********@s pamcop.net> wrote in message
>> news:<hp******* *************** **********@4ax. com>...
>>>
>>> And are functions objects?
>>
>> iirc, yes.

> YRI.


TIWITAW.


<all confused>


FWIW, IUWJM
--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 13 '05 #316
Richard Heathfield <do******@addre ss.co.uk.invali d> wrote in news:bocra9
$n****@sparta.b tinternet.com:
Data is (or are!) what you put into a computer. What it cranks out is
information. Well, that's the general idea, anyway.


Computers aren't bright enough to deal with information, merely data. Data
in, data out. What determines whether it's garbage or not is the
information those data represent.

Ian Woods
Nov 13 '05 #317
Richard Heathfield wrote:
Mark McIntyre wrote:
Well..... NULL is a macro, which is converted by the preprocessor to a
constant inserted literally into the processed code, whose value is
selected to be the one the implementation uses to mean "I point
nowhere". So its not actually a pointer at this point. If you see my
point.


The Standard says: "Such a pointer, called a null pointer, is guaranteed to
compare unequal to a pointer to any object or function."


That sentence applies to the result of converting a null pointer
constant to a pointer type, not to a null pointer constant as such.

"If a null pointer constant is assigned to or compared for equality
to a pointer, the constant is converted to a pointer of that type.
Such a pointer, called a null pointer, is guaranteed to compare
unequal to a pointer to any object or function." (C89: 3.2.2.3)

The corresponding passage in C99 is even clearer:

"If a null pointer constant is converted to a pointer type, the
resulting pointer, called a null pointer, is guaranteed to compare
unequal to a pointer to any object or function." (6.3.2.3)

That is, a null pointer constant (e.g. `0') is not a pointer, but an
expression that is converted to a pointer in certain contexts.

Jeremy.
Nov 13 '05 #318
On Thu, 06 Nov 2003 05:34:07 GMT, nobody <no****@nowhere .non> wrote:


Why do you talk to an obviously knowledgable man as if he was a member of
an inferior species who had never seen a computer before?

--
Alan C this post ends with w
q
Nov 13 '05 #319
Alan Connor wrote:
On Thu, 06 Nov 2003 05:34:07 GMT, nobody <no****@nowhere .non> wrote:


Why do you talk to an obviously knowledgable man as if he was a member of
an inferior species who had never seen a computer before?


It is far from obvious that Roose is knowledgeable, at least in areas of
knowledge that this newsgroup recognises as relevant.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 13 '05 #320

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.