Since argv
is an array of pointers to char
, and string is a char
array underneath, what's the rational behind storing an array of points to the strings passed into the program?
I thought that a use of a pointer made sense if you wished to change what was being pointed to, so I don't understand why you'd want pointers in the case of program arguments.