Basic and Advance C Question:
Download Job Interview Questions and Answers PDF
What is the easiest sorting method to use?
Answer:
The answer is the standard library function qsort(). It’s the easiest sort by far for several reasons:
It is already written.
It is already debugged.
It has been optimized as much as possible (usually).
Void qsort(void *buf, size_t num, size_t size, int (*comp)(const void *ele1, const void *ele2));
It is already written.
It is already debugged.
It has been optimized as much as possible (usually).
Void qsort(void *buf, size_t num, size_t size, int (*comp)(const void *ele1, const void *ele2));
Download C Programming Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the benefit of using const for declaring constants? | What is a const pointer in C? |