The MAIN difference between terrestrial planets and gas giants is

Athe way they were formed.
Bthe shape of their orbits.
Cthe level of their density.
Dthe plane in which they lie.