Rolle's Theorem holds for a function f:[a,b]→R, if following three conditions holds(i) f is continuous on [a,b]
(ii) f is differentiable on (a,b)
(iii) f(a)=f(b)
Then, there exists some c∈(a,b) such that f′(c)=0
So, Rolle's Theorem is not applicable to those functions that do not satisfy any of the three conditions of the hypothesis.
Given function f(x)=[x] for x∈[−2,2]
Since, the greatest integer function is not continuous at integral points.
So, f(x) is not continuous at x=−2,−1,0,1,2
f(x) is not continuous in [−2,2].