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[]
?
Add a comment
|