c - Why are we having argv[2][0] -
i came across program in c, once used argv[1]
, argv[3]
, , once argv[2][0]
. issue not i'm not able differentiate between 1-dimensional arrays , 2-dimensional arrays, issue here use of argv[2][0]
. argument such dimensions? why wasn't argv[2]
used instead?
thanks.
argv[2]
pointer whole argument while argv[2][0]
first character of argument.
Comments
Post a Comment