(c)
Here $l = \cos\frac{\pi}{4},\ m = \cos\frac{\pi}{4}$
Let the line make an angle ‘$\gamma$’ with $z$-axis
$\therefore l^{2} + m^{2} + n^{2} = 1$
$\Rightarrow \cos^{2}\frac{\pi}{4} + \cos^{2}\frac{\pi}{4} + \cos^{2}\gamma = 1$
$\Rightarrow \frac{1}{2} + \frac{1}{2} + \cos^{2}\gamma = 1$
$\Rightarrow 2\cos^{2}\gamma = 0\ \Rightarrow \cos\gamma = 0\ \Rightarrow \ \gamma = \frac{\pi}{2}$