From: "James" <[EMAIL PROTECTED]>

> > If sdf isn't going to change, then
> >
> >  char sdf[] = "ABC";
> >
> > is equivalent, and saves the space for the pointer.
>
> Do you really gain anything?

For an auto non-const variable, you're right. Thanks for the correction.

In other contexts (e.g, a static or member variable), I think that using an
array rather than a char* does save the space for the pointer.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to