Effect of Depth on Acceleration Due to Gravity
If we consider a B at a depth of d below the earth surface than the acceleration due to gravity at B is given by
$\displaystyle {g}’=g\left( {1-\dfrac{d}{R}} \right)$
The above relation shows that the value of acceleration due to gravity decreases with the increase in depth d.

Therefore, at the center of earth i.e. when d = R, the value of g’ = 0. It means that the acceleration due to gravity at the center of earth is zero. The weight of the body is zero at the center of the earth.