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 |
What c++ library is string in?
why we cant create array of refrences
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?
What is volatile and pragma? When they are used?
What is virtual methods?
How many static variables are created if you put one static member into a template class definition?
What is polymorphism and its type in c++?
How can virtual functions in c++ be implemented?
Does c++ have arraylist?
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)
what is C++ objects?
What can I use instead of namespace std?