Which of the following are likely to form an ionic bond?

A. Carbon and hydrogen
B. Carbon and sulfur
C. Magnesium and sulfur
D. Nitrogen and oxygen