$\lim_\limits{x \to 0}(x\sec x)=0$? $$\lim_{x \to 0}(x\sec x)$$
So putting in $x=0$ you get the answer $0$.
$$\lim_{x \to 0}(x\sec x)=0$$
My question is is this a correct way to solve?
edit : So from the answers below, I've understood that if a function is continuous, then $\lim_{x \to a}f(x)=f(a)$
But how do you figure out if a function is continuous? 
from the graph? But what if it's a function that I don't know the graph of?

$$\lim_{x \to 0}(x\sec x)=\lim_{x \to 0}x\cdot\frac{1}{\cos x}=\lim_{x \to 0}\frac{x}{\cos x}=0$$
