Question: in the following array write a generic selection sort function to sort the array in ascending array char* nucleotides[] ={AA, TGA, AAT, TTT, GCT,AAATTT, CCAAT}
in the following array write a generic selection sort function to sort the array in ascending array
char* nucleotides[] ={"AA", "TGA", "AAT", "TTT", "GCT","AAATTT", "CCAAT"}
c programming
I have to use a compare string function to compare them like this function
int compareString(void* a, void* b) { char* x = *(char**)a; char* y = *(char**)b;
return strcmp(x, y); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
