* Dan Arlow <[EMAIL PROTECTED]> [2002-06-14 14:40 -0400]: > 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*)
No, see http://www.eskimo.com/~scs/C-faq/q6.12.html Nicolas To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message