Which of the following compounds results from the formation of an ionic bond?

A) H2O
B)NO2
C)NaCl
D)CO2

C) NaCl