0
How to sort unorganised integers in C language?
18 Réponses
+ 3
Hey lamia
I'm not getting you here, sort unorganised integers? did you mean the unorganised integers are in an array? but why in your recent comment you mention sort letters, are you sorting some integers or are you sorting characters in a C-string?
* Just looking for clarity
+ 3
lamia
If you want you can use qsort function, defined in stdlib.h header. You can of course opt to use one of the sorting algorithm available.
Reference and example:
http://www.cplusplus.com/reference/cstdlib/qsort/
+ 2
lamia, what type of sorting do you want to do. Can you give me an example
Is it sorting an array like:-
[3,4,2,1] to [1,2,3,4]?
Or something else?
+ 2
Roan Holloway
I am just another guy who uses sololearn🙂🙃
+ 2
Thanks Ipang . I needed this!!
+ 2
You're welcome lamia
Post that code up here when you're done 👌
0
I tried🙂. Need some clue. That's why I posted it.
0
I have started with C language. Doing codes only with C. So, wanna sort numbers with the help of C. Anyway, people can be new in programming. What is "common sense" to you, that topic is maybe new to someone. behave good with people. God will bless you
0
اهلا
0
ممكن نتعرف
0
H!
0
Unorganized integers in c language can be sorted out with various sorting techniques like bubble sort, merge sort etc. Bubble sort is most efficient in all of the techniques. You can decide yourself which technique you want to use.