I'm sure this is a simple one but I can't quite get my head around the explanation in my textbook, nor the one on CProgramming here.
I understand that argv[0] is the name of the program being called and this is obviously stored as such (i.e. it is the name you save the program as).
But Argv[1] and upwards - they are stored within the code of that program, yes?
Do they exist somewhere specifically in the code of the program whose name is argv[0]?
Say argv[0] (the name of the program I want to call) is "test1"
What could the code inside that program look like, just for example? Does it haveand then also haveCode:#include<stdio.h>
?Code:main() {
Just not sure where the character strings for argv[1], argv[2], etc actually originally appear.
And is the "command line" something that you put before
...or IS that the command line right there?Code:main()
Thanks a lot