How is an electromagnet different from a bar magnet?

Responses
A Only a bar magnet has a magnetic field.Only a bar magnet has a magnetic field.
B Only an electromagnet attracts materials made of iron.Only an electromagnet attracts materials made of iron.
C An electromagnet is temporary and is magnetic when a current flows through a wire wrapped around the core.An electromagnet is temporary and is magnetic when a current flows through a wire wrapped around the core.
D A bar magnet is temporary and is only when a current flows through a wire wrapped around the core.

C An electromagnet is temporary and is magnetic when a current flows through a wire wrapped around the core.