The center of mass of a uniform rod is at the **midpoint** of the rod, which is at a distance \( \frac{l}{2} \) from either end.
This is a basic property of a uniform object where its mass is evenly distributed along its length.
Thus, the correct answer is:
\[
\boxed{(B) \, \frac{l}{2}}
\]