Re: Good Tutorials
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Tue, 23 Sep 2008 17:17:49 +0000
Amkcoder said:
<snip>
The reason Universities, who make real programmers, say that a pointer
is a variable
that holds the address of another, it is.
You have been shown several counterexamples. Here are a few to refresh your
memory:
malloc(256)
myarray + offset
&integerobject
printf
None of these pointers is a variable that holds the address of another
variable. So now you have three choices:
1) accept that you're wrong;
2) explain why the counterexamples don't apply;
3) neither of the above.
1) and 2) are both honourable options, but 3) just suggests that you don't
know what you're talking about.
This is because every time you declare a pointer it allocates enough
bytes to hold
a value,
Not true. For example, here's a declaration of a pointer that doesn't
allocate any bytes at all:
extern int *p;
<snip>
So he's is an expert?
Then call me the professional.
Why? You have not yet convinced me that you have the slightest idea what
you're talking about.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- Follow-Ups:
- Re: Good Tutorials
- From: Amkcoder
- Re: Good Tutorials
- From: Amkcoder
- Re: Good Tutorials
- From: Amkcoder
- Re: Good Tutorials
- References:
- Good Tutorials
- From: Amkcoder
- Re: Good Tutorials
- From: Richard Heathfield
- Re: Good Tutorials
- From: MisterE
- Re: Good Tutorials
- From: Richard Heathfield
- Re: Good Tutorials
- From: Ben Bacarisse
- Re: Good Tutorials
- From: Amkcoder
- Re: Good Tutorials
- From: jameskuyper
- Re: Good Tutorials
- From: Amkcoder
- Re: Good Tutorials
- From: Richard Heathfield
- Re: Good Tutorials
- From: Amkcoder
- Good Tutorials
- Prev by Date: Re: writing cgi programs in c: the system() call.
- Next by Date: Re: Good Tutorials
- Previous by thread: Re: Good Tutorials
- Next by thread: Re: Good Tutorials
- Index(es):
Relevant Pages
|