int A[n]; //if size of array is n then use sort(A,A+n); // sort function uses best algorithm avaible to sort array A. // Time complexity of sort function is O(n*logn)