On 12/22/06, ed <[EMAIL PROTECTED]> wrote:

On Fri, 22 Dec 2006 10:25:14 +0000
"Paul Herring" <[EMAIL PROTECTED]> wrote:

> On 12/22/06, Sunil Nair <[EMAIL PROTECTED]> wrote:
> >
> > To be more specific
> >
> > A pointer is a variable that holds the address of another
> > variable................
> >
>
> Not always:
>
> int* a, *b;
> a = malloc(sizeof *a);
> b = 0;
>
> Neither a nor b hold the address of another variable.

depends what is at those locations. it might be unintentional but there
could be something useful at both those locations, bit of a lucky dip.


Could you come up with a scenario whereby either the return from malloc() or
NULL would yield something 'useful'?

--
PJH

#713059 +(1255)- [X]

<SaintAlvus> Does the name Doctor Pavlov ring a bell?

Reply via email to