If the current flows out of the paper, the magnetic field at points to the right of the wire will be upwards and to the left will be downwards as shown in figure.


Magnetic field in region AC will be upwards (+ve), because points are closer to A, compared to B. Similarly magnetic field in region BC will be downwards (–ve).
Graph (b) satisfies all these conditions. Therefore, correct answer is (b).