Checking Continuity of functions Consider a function $\sqrt {x-1}$+$\sqrt{1-x}$.From here we can see that domain of the function is just 1 and range is 0.Still the function is continious at x=1 even though RHL and LHL limit doesn't exist. Can you guys tell me how this is possible. What is the criterion for checking continuity of functions 

Continuity is a topological concept. 
If $\langle X,\tau_X\rangle$ and $\langle Y,\tau_Y\rangle$ are topological spaces and $f:X\to Y$ is a function then $f$ is by definition continuous if all preimages of elements $\tau_Y\subseteq\wp(Y)$ under $f$ are elements of $\tau_X\subseteq\wp(X)$.
So that is the criterion that should be handled here. 
Observe that limits do not play a part in it.
In this situation $X=\{1\}$ and then automatically we must have $\tau_X=\wp(X)$ (there are no other topologies on $\{1\}$).
Then it is immediate that any function that has $\{1\}$ as domain is continuous, because preimages under that function will of course be elements of $\wp(\{1\})=\{\varnothing,\{1\}\}$.

It might well be that you are not familiar with topology and that - in spite of that - still are familiar somehow with continuity. The main cause of this is that continuity already shows up in metric spaces, and these spaces can be handled without any reference to topology. Also they carry the possibility of a definition of continuity. But actually metric spaces induce a topology and the definition of continuity in this topological space coincides with the one in the metric space.
To get more view on this you could take a look at this answer.
