Re: Good Tutorials



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
.



Relevant Pages

  • Re: beginner with programming, how to learn to debug and few C general questions
    ... "from G. Willms - french Version published by PC Poche") pointers come ... It's the first time I see atoi. ... it says as a loop until an empty value is ...
    (comp.lang.c)
  • Re: "Pointer" to an object? (i.e. reflect changes to origina
    ... adding the possibility of creating pointers. ... elegant solution I've come up with is an ObjectWrapper class... ... def method_missing ...
    (comp.lang.ruby)
  • Re: Bug/Gross InEfficiency in HeathFields fgetline program
    ... Charlie Gordon wrote, On 26/10/07 05:19: ... If an application developer had made a slightly different choice, namely 0 padding instead of space padding, on the application I spend a lot of time working on then it would make *far* more calls to strncpy than calls strcpy. ... <snip stuff agreed with> ... Not quite, there are *some* programs that can be written without pointers, just not many. ...
    (comp.lang.c)
  • Re: single-address-space UNIX?
    ... David Schwartz wrote: ... point to the new memory which has been allocated for the child process? ... what happens to pointers stored in unions? ...
    (comp.unix.programmer)
  • Re: Type of argc
    ... of pointers in the array to whose first element argv points, ... provides any benefits over any other integer type, signed or unsigned, ... In particular, it has no real relationship to the use of argc, because ...
    (comp.std.c)