Beair.GQ 30 Newbie Poster
void* ptr = buf_ptr[20]; //----------->error

what i want to say is "buf_ptr[20]" is not a pointer,it's
the value of the 20th in buf_ptr

siddhant3s commented: The actuall thread solver +10
Beair.GQ 30 Newbie Poster

// fill in the array is not shown here
qsort(array, NumStrings, sizeof(array[0]), compare);

here,"sizeof(array[0])" is 20bytes;

// fill in the array is not shown here
qsort(array, NumStrings, sizeof(array[0]), compare);
but here,"sizeof(arry[0])" arry[0] is a pointer,so it's mean 4bytes