What happens if you place a compass near a current carrying conducting wire?
The needle of the compass gets deflected
Moving charges produce a magnetic field which is proportional to the current and hence a current carrying conductor produces magnetic effect around it. As a result, the needle in the compass gets deflected when we place a magnetic compass near a current carrying wire.