How do igneous rocks form?

A from the modification of existing rock
B from the cementing of sediments
C from the cooling of magma
D from the evaporation of water

C from the cooling of magma

C from the cooling of magma