Magnetic effect of electric current

Electric current has two effects; heating effect and magnetic effect. This happens because a magnetic field is generated around the wire as electric current passes through a conductive wire. The magnetic field causes the magnetic compass to deflection.