The function \( f(x) = [x \sin n\pi x] \) is continuous at \( x = 0 \) and differentiable in the intervals except at certain points.
However, it is not differentiable at \( x = 1 \), as the behavior at that point is not smooth due to the discontinuity caused by the sine function.