Where exactly IS the "command line"? And where are the arguments?
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 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 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?
Say argv (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 have and then also have
Just not sure where the character strings for argv, argv, etc actually originally appear.
And is the "command line" something that you put before
...or IS that the command line right there?
Thanks a lot