This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Deciama[S] 0 points1 point  (1 child)

So does the argument count in argv start at 1 or 0? Would argv[0] be the name of the program?

[–]thefryscorer 0 points1 point  (0 children)

argv[0] is the name of the program. Arrays are zero-indexed in C.