Talk:A Little C Primer/C Command Line Arguments

argv[0] contains the name of the program itself. You should start your count from 1, ditto for argc.