Re: Doubt about array's name
- From: nembo kid <user@xxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 17:04:47 +0200
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.
.
- Follow-Ups:
- Re: Doubt about array's name
- From: Keith Thompson
- Re: Doubt about array's name
- References:
- Doubt about array's name
- From: nembo kid
- Re: Doubt about array's name
- From: Richard Heathfield
- Doubt about array's name
- Prev by Date: Re: Is cast operator unary or binary? How many operands?
- Next by Date: Re: taking a "word" as input
- Previous by thread: Re: Doubt about array's name
- Next by thread: Re: Doubt about array's name
- Index(es):