The electric field due to an infinitely long, straight, uniformly charged wire is given by:
$E = \frac{\lambda}{2\pi\epsilon_0 r}$
where:
Since $\lambda$ and $\epsilon_0$ are constants, the electric field $E$ is inversely proportional to the distance $r$: $E \propto \frac{1}{r}$.
The correct answer is (B) $\frac{1}{r}$.