Re: char**



MN said:

I have a question :
How to understand the mean of char** type ?

char is a type - objects of that type are 1 byte in size and can contain as
their value any single member of the execution character set.

char * is a type - objects of that type are sizeof(char *) bytes in size,
and can contain as their value the address of a single char.

char ** is a type - objects of that type are sizeof(char **) bytes in size,
and can contain as their value the address of a single char *.

What is the question behind the question?

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages

  • Re: trollish
    ... chars, and I use the "read single char" option, is that what I actually ... If I'm calling ... trying to store the result in a char, or I'm calling get_charand trying ...
    (comp.lang.c)
  • Re: regular expression
    ... As to his question of "is there some special char between..." ... the other possibility is a single char line terminator, ... an extra space after the STOP. ... be the best answer - any extra whitespace will screw the index. ...
    (comp.lang.tcl)
  • Re: My strcpy code
    ... s2 is a pointer to char ... sizeofis the size of a single char ... malloc) will either allocate space for 1 char, ... it returns a pointer to the allocated space ...
    (comp.lang.c)
  • Re: Why is that?
    ... The only one the OP actually uses is as a string. ... >char and string, and if you ... these macros for obvious constants aren't very valuable. ... It is therefore both a single char and a 0-terminated string. ...
    (comp.lang.c)
  • Re: diffrence ??
    ... > if i want to allocate the one byte for the char? ... Both of these define objects consisting of a single byte capable of ... holding a single char value. ... want to do this however as the array form is marginally more complex. ...
    (comp.lang.c)