dumb question: extra "&" in the previous post?

why do both this
> qsort(&array, NUM_INTS, sizeof(*array),
> (int (*)(const void *, const void *)) comp);
and this
  qsort(array, NUM_INTS, sizeof(*array),
  (int (*)(const void *, const void *)) comp);

work properly? I tried both and both compile/run/sort fine.

(the difference afaik is that the first passes an *int[] aka int** and the
second passes an int[] aka int*)

-dan (noob)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to