#Understanding the argv array

3 messages · Page 1 of 1 (latest)

crystal kestrelBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

sinful wraith
#

If you call a program like ./program a b c d
Then your argv looks like so:

["program", "a", "b", "c", "d"]
#

So argv[1] would be "a"