If each element of your array is a 'T', then the qsort compare function receives two 'T*' pointers.