What produces magnetic fields?

A) a built-up electric charge
B) moving electric charges
C) a wire wound around a bar magnet
D) two electrical insulators connected together