Can an unbounded function in $R$ both continuous a dense set of points and discontinuous on a dense set of points?
I guess it is impossible since at least one discontinuity means the function is not continuous so I am looking for an example but can not find it.