M
mdh
Could I ask a question to help me better understand this issue.
(P 108, K&R II)
If one declares: char *lineptr[someNmber]; ( which is explained as an
array, each of whose elements is a pointer to a char, which I see)
and a function like qsort is as: void qsort(char *lineptr[],
int ,int);
I am not sure I understand why the calling function uses the
terminology:
if ( etc etc etc)
qsort(lineptr, someNumber, someNumber);
as opposed to
qsort(*lineptr, someNumber, someNumber);
As usual, there is something very fundamental that I am probably
missing
(P 108, K&R II)
If one declares: char *lineptr[someNmber]; ( which is explained as an
array, each of whose elements is a pointer to a char, which I see)
and a function like qsort is as: void qsort(char *lineptr[],
int ,int);
I am not sure I understand why the calling function uses the
terminology:
if ( etc etc etc)
qsort(lineptr, someNumber, someNumber);
as opposed to
qsort(*lineptr, someNumber, someNumber);
As usual, there is something very fundamental that I am probably
missing