in this quick sort code what is the int *pItem for?
when it's compiled it gives an unreferenced local variable warning.
just confused....
Code:#include <stdio.h> #include <stdlib.h> int compare (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } int main () { int values[] = { 40, 10, 100, 90, 20, 25 }; int * pItem; int n; qsort (values, 6, sizeof(int), compare); for (n=0; n<6; n++) { printf ("%d ",values[n]); } return 0; }