What happens if I buy stock in a company and then it is bought out by another company?

What happens if I buy shares in a company and later, it is bought out by another company? Do I lose my stock or will I be given stock in the new company? What happens if the company goes bankrupt?

You will receive an offer for the stock that you already own before the buyout. The new company will offer you stock or cash for the shares you already own.

If the company goes bankrupt, your investment is now worthless.