1. is a pointer that can point to anything (allocated or not, chars or not)
2. is a array of 10 bytes, NOT FILLED with \0 or anything else in
particular, just garbage memory
3. will not compile.

On 11/22/06, victorp king <[EMAIL PROTECTED]> wrote:
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/


--
Best Regards, Dmitry Grinberg
Software Engineer, http://PalmPowerups.com
(847) 226 9295
AIM: DmitryGrinberg
MSN: [EMAIL PROTECTED]
ICQ: 165589894
Y! IM: dmitrygr2003

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

Reply via email to