Below diagrams shows the magnetic field lines along the axis of a current carrying solenoid with the direction of current and direction of magnetic field lines marked:

Below diagrams shows the magnetic field lines along the axis of a current carrying solenoid with the direction of current and direction of magnetic field lines marked:
