Step 1: Think of the lines as unit vectors:
Because $l^2 + m^2 + n^2 = 1$, the vectors $\vec{p} = l_1\hat{i} + m_1\hat{j} + n_1\hat{k}$ and $\vec{q} = l_2\hat{i} + m_2\hat{j} + n_2\hat{k}$ have length 1.
Step 2: Use the dot product:
For any two vectors, $\vec{p}\cdot\vec{q} = |\vec{p}||\vec{q}|\cos\theta$.
With $|\vec{p}| = |\vec{q}| = 1$, this reduces to $\cos\theta = \vec{p}\cdot\vec{q}$.
Step 3: Expand the dot product:
\[ \cos\theta = l_1l_2 + m_1m_2 + n_1n_2 \]
Step 4: Sanity check against the options:
Take the x-axis $(1, 0, 0)$ and the y-axis $(0, 1, 0)$. The angle is $90^{\circ}$, so the cosine should be 0. Option (C) gives $0 + 0 + 0 = 0$. Correct.
Option (A) gives $(1)(1) = 1$ for the same lines, which is wrong.
Option (B) divides by $l_2 = 0$ and is undefined.
Take two identical lines. The cosine must be 1. Option (C) gives $l^2+m^2+n^2 = 1$, while option (B) gives 3.
Final Answer:
The required cosine is $l_1l_2 + m_1m_2 + n_1n_2$, option (C).
\[ \boxed{l_1l_2 + m_1m_2 + n_1n_2} \]