reverse array in stl c++ code example Example: stl function to reverse an array reverse(ar , ar + n) ; //ar is the array , n is the size