Re: [C or C++] Is this legal? sizeof *p
From: Anand Hariharan (ROT13qrfu_onxguROT13_at_yahoo.com)
Date: 01/07/04
- Next message: news.hku.hk: "why display is ffffff82 instead of 82 ??"
- Previous message: Jacques Labuschagne: "Re: write program to display flash"
- In reply to: Anand Hariharan: "Re: [C or C++] Is this legal? sizeof *p"
- Next in thread: Martijn Lievaart: "Re: [C or C++] Is this legal? sizeof *p"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: news.hku.hk: "why display is ffffff82 instead of 82 ??"
- Previous message: Jacques Labuschagne: "Re: write program to display flash"
- In reply to: Anand Hariharan: "Re: [C or C++] Is this legal? sizeof *p"
- Next in thread: Martijn Lievaart: "Re: [C or C++] Is this legal? sizeof *p"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]