int argc, char** argv
in the following declaration what does a double star mean ?? I know 1 is pointers but two ?!?
int argc, char** argv
in the following declaration what does a double star mean ?? I know 1 is pointers but two ?!?
every * means a pointer so ** is a pointer to a pointer…
int argc : The number of command line arguments when the program was run
char** argv : an array of strings, each string being one of the arguments
ie, running a program like such…
Program -f
argv[0] will be a pointer to the start of the string “Program”
argv[1] will be a pointer to the start of the string “-f”
It’s the same like “char* argv[]”
you see ?? ;-))