What is the impact of mergers and acquisitions on stock prices?

How do mergers and acquisitions typically affect the stock prices of involved companies?,