i am trying to make a function which sort the linked list when passed the header to it.the list consists of struct with data( int and char array).can ne1 help?
i am trying to make a function which sort the linked list when passed the header to it.the list consists of struct with data( int and char array).can ne1 help?
and have to sort in increasing order of data int!
Which sorting algorithm do you want to use? Study how that algorithm works and then apply it to the linked list datastructure.