0

Since argc gives the number of command line arguments, which is the length of argv[] why should the square brackets be empty? Can I not write main function signature as int main(int argc, string argv[argc])? Doesn't argc get computed before looking into elements of argv[]?

0

They are empty because that is how the language was defined.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .