In which of the following functions Rolle's theorem is applicable -
(A) $f(x)= \begin{cases}x & , 0 \leq x<1 \\ 0 & , x=1\end{cases}$
(B) $f(x)= \begin{cases}\frac{\sin x}{x},-\pi \leq x<0 \\ 0, & x=0\end{cases}$
(C) $f(x)=\frac{x^{2}-x-6}{x-1}$ on $[-2,3]$
(D) $f(x)= \begin{cases}\frac{x^{3}-2 x^{2}-5 x+6}{x-1} & \text { if } x \neq 1, x \in[-2,3] \\ -6 & \text { if } x=1\end{cases}$