I would like a few clarifications regarding the way parameters are stored in argv[]
when a C program is called from the console.
In particular "The C Programming Language" of Dennis M.Ritchie states that argv is a pointer to an array
of pointers and treats it as such. However I've seen numerous examples using the following line:
main(int argc, char *argv[])
which implies that argv is just an array of pointers.
Which one is the correct case and why is that happening?

New Topic/Question
Reply




MultiQuote








|