Re: [C or C++] Is this legal? sizeof *p

From: Anand Hariharan (ROT13qrfu_onxguROT13_at_yahoo.com)
Date: 01/07/04


Date: Wed, 7 Jan 2004 00:59:24 -0600


"Anand Hariharan" wrote in message
news:d07b1a6a.0401051631.45e289d2@posting.google.com...
> > >
> > > I don't get this. When, in C++, would one use malloc/free over
> > > new/delete? I spent sometime trying to get an answer for this in
> > > Cline's FAQ, but nothing that addressed this.
> >
>
> Is there an /idiomatic/ reason why one would use malloc/free (with a
> cast thrown in some form, at some point) over new/delete?
>

Thanks to Jeff and Richard for their responses.

Special thanks to Martijn and Bob for their elaborate posts.

- Anand