It isnt sorting the char *array why ??? thanks and yeah one more thing .I am making a address book programm so where can i download the codes for the address book contest that was done before ... ThanskCode:#include <stdio.h> #include <stdlib.h> #include <string.h> int intcmp(const void *v1, const void *v2); int main(void) { char *array[8] = { "India", "Africa","America","London","Neyyork","Newjersy","WestLife","Fremee"}; int cnt,i; cnt = sizeof(array)/sizeof(array[0]); printf("%d", cnt); qsort(array , cnt , sizeof( array[0]) , intcmp); for ( i = 0; i < 8; i++ ){ printf("%s\n", array[i] ); } system("PAUSE"); return 0; } int intcmp(const void *v1, const void *v2) { return (*(int *)v1 - *(int *)v2); }