The correct option is B Only outside the pipe
For a long hollow pipe carrying a current i, the Magnetic field outside the pipe is given by
Bout=μ0i2πR
According to Ampere's circuital law, if an Amperian loop is considered inside the hollow pipe, then current enclosed by the loop will be zero and hence, the magnetic field inside the pipe will be zero.
Bin=0