| Subject: | Re: Doubt about array's name |
|---|---|
| From: | nembo kid |
| Date: | Wed, 30 Apr 2008 17:04:47 +0200 |
| Newsgroups: | comp.lang.c |
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. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Is cast operator unary or binary? How many operands?, jacob navia |
|---|---|
| Next by Date: | Re: taking a "word" as input, arnuld |
| Previous by Thread: | Re: Doubt about array's name, Richard Heathfield |
| Next by Thread: | Re: Doubt about array's name, Keith Thompson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |