On Mon, 22 Mar 1999, [ISO-8859-1] Torbjørn Kristoffersen wrote: > > This allocates precisely one byte of data for dbQuery. Try > > > > char dbQuery[1024]; > > > I replied to this mail too, but then I used char *dbQuery instead. > What's the difference anyway? Hi there, I think "char foo[n];" allocates the memory for foo; but "char *foo" creates the pointer with no memory allocated. You need to have a "malloc" (or "new" in C++) to get the memory actually allocated. Hossein
- ??? j . demessemaeker
- Re: ??? Glynn Clements
- Re: ??? Torbjørn Kristoffersen
- a program to read one's mailbox? Hossein S. Zadeh
- Re: a program to read one's mailbox? David Rysdam
- [SOLVED--SUMMARY] Re: a program to... Hossein S. Zadeh
- Re: a program to read one's mailbox? Vitaly Fedrushkov
- Re: ??? Torbjørn Kristoffersen
- Re: ??? Glynn Clements
- Re: ??? James
- container class ? Chetan Sakhardande
- Re: container class ? James