Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Sorting sort function stl in c++
#include <iostream> #include <algorithm> using namespace std; void show(int a[]) { for(int i = 0; i < 10; ++i) cout << a[i] << " "; } int main() { int a[10]= {1, 5, 8, 9, 6, 7, 3, 4, 2, 0}; cout << "\n The array before sorting is : "; show(a); sort(a, a+10); cout << "\n\n The array after sorting is : "; show(a); return 0; }
run
|
edit
|
history
|
help
0
mirrorpoint
dijkstra's algo
11340 v3.0
shuffle_example
new delete malloc free
Avoiding visited networked paths
Pollard Rho Brent Integer Factorization - 11476 - Factorizing Larget Integers
4
CPP - ex 5 - solution
Cyclically rotate an array by one