sort(arr ,arr+n) by default uses which type of sort function code example Example: stl sort in c++ sort(arr, arr+n); // sorts in ascending order