
Doug C. answered 10/16/18
Math Tutor with Reputation to make difficult concepts understandable
A example of a function that is not continuous on its domain is given by a piecewise function.
For example f(x) = { x+4, when x <= 0, x+5 when x > 0}. The function has a value at x = 0, f(0) = 4, so 0 is in the domain of the function. But it is not continuous at 0 because the limit does not exist as x-> 0 -- different values from left and right.