The factor that does not affect the electrical resistance of a body is:
B) Bodies directly surrounding the body
Electrical resistance is primarily influenced by the material of the body (A), its length (C), and its temperature (D). The surrounding bodies may influence the overall electrical environment but do not change the intrinsic resistance of the body itself.