main() parameters

int main(int argc, char *argv[]) or int main(int argc, char **argv) ?

The first would read "array of pointer to char".
The second would read "pointer to pointer to char".
But since one-dimensional arrays decay to pointers when used as formal parameters, I used to prefer the latter form.
What about you?
the first form is more logical becouse "pointer to char" is what programmers often call a "c-string", so it would read "array of c-strings" which is logical and even an early beginner in programming would know what it means, while the "pointer to pinter to char" isn't so straight-forward"
Another guy deleting his main post? Wait...
Topic archived. No new replies allowed.