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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!