According to my math professor, the extreme value theorem is stated as: If $ f: [a,b] \to \mathbb{R} $ is continuous then $f$ is bounded, and the maxima and minima are obtained for some $x$ belonging to the domain.
My intuition tells me that the condition on continuity is redundant, and even a function which is not continuous over $[a,b]$ is bounded. Is it not true that any function which is defined for all values in a given closed interval should be bounded? I am unable to think of an example of a function which is defined on a closed interval, but not bounded.