Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
Yes, the bubble sort could work with character strings, to sort names in C.
I will suggest you to go through the below link in stackoverflow. I hope
it will help you out
Any sorting algorithm can work with anything that can be compared so bubble sort can be used to sort numbers or strings or just blocks of 5 bytes of memory.
Comment