Mail Archives: djgpp/2000/05/19/19:54:05
On 19 May 2000, J-P wrote:
> In article <200005190942 DOT LAA19117 AT acp3bf DOT physik DOT rwth-aachen DOT de>,
> Hans-Bernhard Broeker <djgpp AT delorie DOT com> wrote:
> >Especially since you describe yourself as a C novice, you should
> >*never* do such things. Stick to the core of the language while you're
> >still learning.
>
> Pointers *are* the core of the language. If you try and ignore them, you
> don't get very far before you're torn between finally discussing them, or
> suggesting that C "passes by reference."
yes, but IMHO this is a area which newbies find it extremely dificult to
grasp, which is made much more worse by zero based arrays etc. So IMHO
newbies should defer using pointers till they are a bit more confident
about how they work etc..just try explaining the difference between the &
and the * and you will understand....
> The sheer usefulness and tried-and-testedness of pointers is, IMHO, what
Please don't forget that this "sheer usefulness and blah blah of pointers"
is also what has led to a countless numbers of errors in programs ranging
from buffer overflows, to GPF's, even guru level programmers are not
immune to making this kind of errors...
Grendel
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)
- Raw text -