When the current is switched on through a wire, a compass needle kept nearby gets deflected from its north-south position. Explain.
The flow of current through a wire
Because of this magnetic field, when a compass needle is brought closer to the wire, it gets deflected from its north-south position.