i have quick question, if have array of character strings this:
char *array[3] = {"hello","hi","goodbye"};
how size of each element in array? trying qsort function qsorts' third argument requires size in bytes of each element in array.
you don't want size (i.e. length) of strings if you're using qsort. want size of the array elements. sizeof(char *).
Comments
Post a Comment