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