CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS LANGUAGES C DETAILS
Question :
What is the easiest sorting method to use?
Category C Interview Questions
Rating (4.4) By 50 users
Added on 10/22/2004
Views 6476
Rate it!
Answers:

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));



quick sort technique it s a eay way of sorting mtd



 Posted by: srinivasan    

Contact srinivasan  Contact srinivasan

bubble()
It is already debugged.
It is already written



 Posted by: divyan    

Contact divyan  Contact divyan

qsort().it is debugged,writeen for easy purpose



 Posted by: ANANTH    

Contact ANANTH  Contact ANANTH

qsort().
Because it is already witten and debug.
But most important thing is the performance of qsort().
qsort() has order of complexity o(nlog(n)) where bubble() has o(n).
Hence qsort has better performance than bubble sort.



 Posted by: Prashant    

Contact Prashant  Contact Prashant

The Selection sort is the easiest method of sorting,in this method,to sort data in ascending order,the 0th element of the array is compared with all other elements,if 0th element is found to be bigger than other ,then their places are interchanged,elsethe smallest element is placed at 0th position.



 Posted by: shuvodeep    

Contact shuvodeep  Contact shuvodeep


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
What is the quickest sorting method to use?
View Answer
How can I sort things that are too large to bring into memory?
View Answer
What is the easiest searching method to use?
View Answer
What is the quickest searching method to use?
View Answer
What is hashing?
View Answer
How can I sort a linked list?
View Answer
How can I search for data in a linked list?
View Answer
How do you redirect a standard stream?
View Answer
How can you restore a redirected standard stream?
View Answer
What is the difference between text and binary modes?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/1048/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

1.11