Click here to Skip to main content
15,888,977 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,friends i was studying c book ritchi ,i faced with pointer,
it is talk that
C++
char **argv 

is pointer to character ,see image book too
image[^]
i think **argv should be pointer to pointer char .is it true?
please explain me more?
thanks

What I have tried:

i am confused,what means pointer like:
**argv char
***argv char

thanks
Posted
Updated 3-Mar-16 3:49am
v2

1 solution

You are right. It is a pointer to a pointer to char. The linked reference is wrong.

You may also have a look at Pointers - C++ Tutorials[^] (section Pointers to pointers).
 
Share this answer
 
Comments
stackprogramer 3-Mar-16 10:07am    
you rescued me from confusion thanks very much
Jochen Arndt 3-Mar-16 10:29am    
You are welcome.

I have just checked it in a downloaded PDF version where it is correct. So you may have an older version of the 2nd edition.
stackprogramer 3-Mar-16 10:34am    
i have this book The_C_Programing_Language 2nd ed Brian W. Kernighan and Dennis M. Ritchie.pdf
the page 109.
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900