Doubt about array's name
- From: nembo kid <user@xxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 15:34:29 +0200
In the following function, s shouldn't be a pointer costant (array's name)?
So why it is legal its increment? Thanks in advance.
/* Code starts here */
void chartobyte (char *s) {
while (s!=0) {
printf ("%d", *s);
s++;
}
/* Code ends here */
.
- Follow-Ups:
- Re: Doubt about array's name
- From: Ofloo
- Re: Doubt about array's name
- From: Richard Heathfield
- Re: Doubt about array's name
- Prev by Date: Re: Temporarily close stdout?
- Next by Date: Re: Is cast operator unary or binary? How many operands?
- Previous by thread: Temporarily close stdout?
- Next by thread: Re: Doubt about array's name
- Index(es):
Relevant Pages
|