sort() is working with <bits/stdc++.h> and
Do these header files have same functions.Please explain these header files
Header file of sort
Hey @KetanPandey
algorithm and bits/stdc++.h are completely different header files. Basically The Header File Defines Standard Template Library (STL) container template functions that perform algorithms(like reverse, sort, etc). <bits/stdc++.h> in C++ includes every standard library. So basically algorithm libraries are included within bits/stdc++.h.
If you’re including this one in your program, you don’t need to include any other header file(like string, vector, algorithm, etc)
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.