What happens to my stock if a company goes bankrupt?

Joe K asked: I own stock in a company that is facing bankruptcy. Will I lose my stock if the company is acquired by another company or will I lose my stock if they go bankrupt and do a reorganization settlement/agreement with their creditors?