Re: Doubt about array's name



Richard Heathfield ha scritto:

Why not? It's only a copy, after all. It doesn't affect the original array address in any way whatsoever.

Ok my doubts cleared all.

But anyway I dont'understand because someone add the qualificator "const" to string array passed to the function (so to avoid any change of this pointer).

/* Code */
void chartobyte (const char *s)
/* Code */


while(*s != '\0') /* significant difference #2 */

Yes, was my mistake.

Thanks again and apologies for my bad english.
.