Consider $f(x)=\begin{cases} x, & \text{if $x$ is rational} \\ \frac{1}{x}, & \text{if $x$ is irrational} \end{cases}$
I proved that $f$ is continuous only at $1$ and $-1$ as follows:
Case $1$: $c=0$.
Case $2$: $c$ is rational number that is different than $0,1$ and $-1$.
Case $3$: $c$ is irrational number.
And in each case I assumed that $f$ is continuous and manged to arrive to a contradiction by constructing a sequence say $\{x_n\}$ that converges to $c$, but $\{f(x_n) \}$ either diverges or it converges to a number different than $f(c)$.
And for the case of $1,-1$, I proved that f is continuous by the definition of continuity.
Is my result correct or did I miss something ? And is there a shortcut or faster method than what I did ?
The approach is sound. Without checking the individual steps, it's difficult to verify the proof beyond this point, or to recommend shortcuts.
I don't see to much to shortcut here anyway. You could find most of the points of discontinuity by using the density of the rationals and the irrationals. For any point $x \in \Bbb{R}$, you know that there is a sequence of rationals $a_n \to x$ and a sequence of irrationals $b_n \to x$. Since $x$ is continuous, $f(a_n) = a_n \to x$. Since $\frac{1}{x}$ is continuous (for $x \neq 0$), $f(b_n) \to \frac{1}{x}$.
If $x \neq \frac{1}{x}$ (and $x \neq 0$), then you have two sequences converging to $x$, that map to sequences converging to different limits. This would contradict $f$ being continuous at $x$.
This doesn't establish that $f$ is continuous at $x = \pm 1$, so more individual verification is needed. The $x = 0$ case needs to be dealt with separately too.
So, I wouldn't consider it much of a shortcut! But it might cut down your argument a little.