470,600 Members | 1,489 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,600 developers. It's quick & easy.

Sorting names in ascending order ?.

2 2Bits
Hello,

I was wondering if the bubble sort could work with character strings, to sort names in C?


thanks
jackyjoy
Jan 3 '21 #1
4 2637
dev7060
569 Expert 512MB
I was wondering if the bubble sort could work with character strings, to sort names in C?
I believe so.   ⠀⠀⠀⠀           
Jan 4 '21 #2
Naheedmir
62 32bit
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

/questions/61450131/bubble-sorting-an-array-of-strings-in-c
Jan 13 '21 #4
Banfa
9,065 Expert Mod 8TB
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.
Jan 13 '21 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by news.hku.hk | last post: by
2 posts views Thread by fred_stevens | last post: by
2 posts views Thread by PRadyut | last post: by
5 posts views Thread by Nick Weisser | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.