std::sort(&a[0], &a[n]);
123
// Here is a slightly different syntax for doing the same thing. You can specify whatever range you wish // using this template algorithm. std::sort(a, a + n);