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

Reply via email to