@sks5440,
sorry, but you are compl. wrong.
sks5440 said:
When you pass an array you are really passing a pointer to the first element of the array so that *arg[], *arg[1], *arg[999] and **arg are all the same.
exmpl.
1. a pointer to the first element of the array, looks like this (datatype *)&arg[0]
2. *arg[1]
and esp. **arg ist the same ???, bullschitt !
3. what do you mean, arg[], *arg[1], *arg[999]
and **arg are all the same ??, bullschitt !
functionname (int argc, char *argv[]) or functionname (int argc, char *argv[0]) means, argv is a pointer to
the first entry of the array with unknown numer of item. Items are of type (char *).
so, the firts entry means, ther is no difference if you write *argv[] or *argv[0]
sorry, Rolf