Are you supposed to breathe out underwater or hold your breath then exhale and inhale all at once when swimming laps?

When swimming laps (as opposed to racing) you should breathe out in a continuous flow underwater so that you are ready to draw your next breath as your mouth breaks the surface.