Step 1: Recall the magnification formulas.
For a compound microscope,
- When the final image is at infinity,
\[
M_\infty
=
\frac{L}{f_o}\cdot\frac{D}{f_e}.
\]
- When the final image is at the near point,
\[
M_N
=
\frac{L}{f_o}
\left(1+\frac{D}{f_e}\right).
\]
Hence,
\[
M_N-M_\infty
=
\frac{L}{f_o}.
\]
Step 2: Substitute the given values.
Given,
\[
L=100\,\text{cm},
\]
\[
f_o=5\,\text{cm}.
\]
Therefore,
\[
M_N-M_\infty
=
\frac{100}{5}
=
20.
\]
Thus,
\[
\boxed{\text{Difference in magnification}=20.}
\]
Hence, the correct option is \(\boxed{(D)}\).