Re: How to increment array of pointers to strings
- From: pete <pfiland@xxxxxxxxxxxxxx>
- Date: Wed, 04 Aug 2010 21:33:24 -0400
Keith Thompson wrote:
barncat <thebarncat@xxxxxxxxx> writes:
[...]
Thanks. The array is actually a ptr to an array of strings, like:
char *name[] = { "one","two","three" };
which yes, i guess is different than **argv.
sorry, i am just confused trying to learn.
I guess i could make it an
** object like argv and work with it that way.
Given the above declaration, name is a pointer to the first element
of an array of char*, where each char* happens to point to (the
first character of) a string.
It almost seems as though you are saying that
given the above declaration, that (name) is a pointer.
--
pete
.
- Follow-Ups:
- Re: How to increment array of pointers to strings
- From: Keith Thompson
- Re: How to increment array of pointers to strings
- References:
- How to increment array of pointers to strings
- From: barncat
- Re: How to increment array of pointers to strings
- From: Ben Bacarisse
- Re: How to increment array of pointers to strings
- From: barncat
- Re: How to increment array of pointers to strings
- From: Keith Thompson
- How to increment array of pointers to strings
- Prev by Date: Re: (OT) Re: "claim", etc. (was Re: C Standard Regarding Null Pointer Dereferencing)
- Next by Date: Re: How to increment array of pointers to strings
- Previous by thread: Re: How to increment array of pointers to strings
- Next by thread: Re: How to increment array of pointers to strings
- Index(es):
Relevant Pages
|