```python
def re_arrange_array(arr, n):
    """
    Re-arranges an array so that all negative elements appear before positive ones.

    Args:
        arr: The list of integers to re-arrange.
        n: The number of elements in the array.
    """
    
    # This pointer indicates the position where the next negative number should be placed.
    # All elements before this position are negative.
    next_negative_position = 0
    
    # Iterate through the entire array.
    for i in range(n):
        # If the current element is negative, move it to the section of negative numbers.
        if arr[i] < 0:
            # Swap the current element with the element at the next_negative_position.
            arr[i], arr[next_negative_position] = arr[next_negative_position], arr[i]
            
            # Increment the pointer to expand the negative numbers' section.
            next_negative_position += 1
```