In pset2 description following is said about int main(int argc, string argv) function:
1 : Well, recall that inside of argv, by default, is a program’s own name
Q1: How come argv is by default program's own name? I don't remember reading it in books. Isn't argv is first letter in string? For example, "This is CS50", in this case argv is letter "T".
2 : But for this program you want the user to provide a command-line argument, k, in which case argc should be 2
Q2: isn't argc equals number of words in string. For example, "This is CS50", in this case argc = 3 (1 - This, 2 - is, 3 - CS50)
I'm totally confused with description of main(int argc, string argv) and cannot continue. Please help with description of this function.