What sorting algorithm does c++ use?



What sorting algorithm does c++ use?..

Answer / Vishesh Anubhav Vashisht

C++ doesn't have a built-in sorting algorithm. However, it provides several standard libraries for sorting algorithms, such as STL's sort() function that uses the QuickSort or MergeSort algorithm based on compiler optimization.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What c++ library is string in?

1 Answers  


why we cant create array of refrences

4 Answers  


1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?

5 Answers  


What is volatile and pragma? When they are used?

1 Answers  


What is virtual methods?

1 Answers  


How many static variables are created if you put one static member into a template class definition?

1 Answers  


What is polymorphism and its type in c++?

1 Answers  


How can virtual functions in c++ be implemented?

1 Answers  


Does c++ have arraylist?

1 Answers  


Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)

4 Answers   HTC, TCS,


what is C++ objects?

1 Answers  


What can I use instead of namespace std?

1 Answers  


Categories