another question about string op.

code like below can't pass the compile, i want to know why?
char a[10];
a = "bbbb";

this is supported in standard C ,why can't work under palm sdk?


2006/11/23, victorp king <[EMAIL PROTECTED]>:
>
> what's the different between these three declaration sentence:
> 1.char *a;
> 2,char a[10];
> 3,char a[];
>
> as my opion , the first one is just a pointer which can point any
> allcoated string value.
> the sencond one , it dose get ten bytes,these bytes filled with '\0'.
> the third one ,it should be the same as the first.
>
> is this right?
>
>
> 2006/11/23, victorp king <[EMAIL PROTECTED]>:
> >
> >  my simulator is ver 5.4 ,then everytime when i execute the line
> > 'StrCat(label, label0);' which i try to concat two strings, simulator
> > crashes.
> > Dose anybody know the reason?
> > -- For information on using the PalmSource Developer Forums, or to
> > unsubscribe, please see http://www.palmos.com/dev/support/forums/
> >
>
> -- For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Reply via email to