[prev] 32 [next]

Arrays of Strings

One common type of pointer/array combination are the command line arguments
  • These are 0 or more strings specified when program is run
  • Suppose you have an excutable program named seqq. If you run this command in a terminal:

    prompt$ ./seqq 10 20
    

    then seqq will be given 2 command-line arguments: "10", "20"