The correct option is C ionic compound
Ionic compounds are formed when there is a transfer of electron(s) from metallic atom/s to non-metallic one/s to attain stability.
For example, one electron is transferred from sodium to chlorine to form sodium chloride. In the process sodium loses one electron and becomes a cation whereas chlorine gains one electron and becomes the anion.