The correct option is B Only outside the pipe
Using Ampere's circuital law,
∮B⋅dl=μ0Ienc
For any point inside the hollow conductor, Ienc=0
⇒Bin=0
For any point inside the hollow conductor, assuming an amperian loop the net current enclosed by the loop is zero i.e., Ienc=0
∮B⋅dl=μ0Ienc
B∮dl=μ0I
⇒Bout=μ0I2πr
<!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}-->
Hence, (B) is the correct answer.