Re: char**



On Aug 30, 6:01 am, MN <mazouz.nezh...@xxxxxxxxx> wrote:
I have a question :
How to understand the mean of  char** type ?

Well, it's a pointer to a pointer to a char. So if char * can
represent a string, char ** points to multiple strings. For example,
to define an array of strings one would usually:
char *arr[] = { "one", "two", "three" };

If you want more clarification you need to be more specific in your
post :P
.



Relevant Pages

  • Re: two dimensional arrays passed to functions
    ... > array and then send it down as a single dimmensional array. ... x is an array of char pointers. ... to a pointer to the first element of this array, ... need to copy the strings and not just assign pointers to them). ...
    (comp.lang.c)
  • Re: somebody dropped a (warning) bomb
    ... - pointer to a char/to an array of chars ... "The three types char, signed char, and unsigned char are collectively ... differentiate 1 and 2 by signedness doesn't make sense. ... Of the fact that strings in C are "char*"? ...
    (Linux-Kernel)
  • Re: Strange problem on GCC - PLEASE HELP!!
    ... be a pointer to char, and you are passing pointer to unsigned char. ... Do not pass pointers to character arrays that are not strings to ...
    (comp.lang.c)
  • Re: Sets and portability (was) Re: Is ISO Pascal compatible with J&W (original) Pascal ?
    ... strings, the user can control the length by the data they process; ... >> The computer world is more complex than it's ever been (eg Unicode) ... The Pascal `Char' type can be this size (unlike C, ... > Note that ansi->wide conversion is codepage sensitive. ...
    (comp.lang.pascal.misc)
  • Re: Lettura binaria di vector<string>
    ... > I'd like to read and write on binary files some vectors of strings, ... I recommend changing the argument to 'const char* in'. ... Casting a pointer to char to a pointer ...
    (comp.lang.cpp)