dimension || pointer pointer

Posted by gcc on Stack Overflow See other posts from Stack Overflow or by gcc
Published on 2010-05-04T20:36:06Z Indexed on 2010/05/04 21:28 UTC
Read the original article Hit count: 119

Filed under:
|

What are pointers to pointers (like char **p;) used for? Can there be char ***p; or char ****p;? What would they be used for?

my real question is >>what is the main purpose of char **p;  
why we need to use that type 

one answer is char *p - one dimension
char *p - 2 dimensions
char *
*p - 3 dimensions

   i have asked you can give example but he havenot answer
  i am thinking  can we use 
  ? is p[i][j] to **p
  that is can we use it like 
    for(;;)
      for(;;)
         scanf("....",p[i][j]);

© Stack Overflow or respective owner

Related posts about c

    Related posts about pointers